congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SearchArrowDrawable
Code IndexAdd Tabnine to your IDE (free)

How to use
SearchArrowDrawable
in
com.mypopsy.drawable

Best Java code snippets using com.mypopsy.drawable.SearchArrowDrawable (Showing top 2 results out of 315)

origin: renaudcerrato/ToggleDrawable

  public SearchArrowDrawable(Context context, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
    super(context, defStyleAttr, defStyleRes);

    final TypedArray typedArray = context.getTheme()
        .obtainStyledAttributes(null, R.styleable.SearchArrowToggle, defStyleAttr, defStyleRes);

    float radius = round(typedArray.getDimension(R.styleable.SearchArrowToggle_td_searchRadius, 0));
    float barLength = round(typedArray.getDimension(R.styleable.SearchArrowToggle_td_searchLength, 0));
    float arrowHeadLength = round(typedArray.getDimension(
        R.styleable.SearchArrowToggle_td_arrowHeadLength, 0));
    float arrowShaftLength = typedArray
        .getDimension(R.styleable.SearchArrowToggle_td_arrowShaftLength, 0);
    typedArray.recycle();

    SearchModel search = new SearchModel(radius, barLength);
    ArrowModel arrow = new ArrowModel(arrowShaftLength, arrowHeadLength, getStrokeWidth());

    add(search.handle, arrow.bottomHead);
    add(search.topRightQuadrant, arrow.topHead);
    add(search.bottomRightQuadrant, arrow.bottomHead);
    add(search.topLeftQuadrant, arrow.body);
    add(search.bottomLeftQuadrant, arrow.body);
  }
}
origin: renaudcerrato/ToggleDrawable

add(new SearchArrowDrawable(this));
add(new SearchCrossDrawable(this));
add(new DrawerArrowDrawable(this));
com.mypopsy.drawableSearchArrowDrawable

Most used methods

  • <init>
  • add
  • getStrokeWidth

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now