IT. Expert System.

Android Reference

MediaRouteButton


android.app

Class MediaRouteButton

    • Constructor Detail

      • MediaRouteButton

        public MediaRouteButton(Context context)
      • MediaRouteButton

        public MediaRouteButton(Context context,
                        AttributeSet attrs,
                        int defStyleAttr)
    • Method Detail

      • performClick

        public boolean performClick()
        Description copied from class: View
        Call this view's OnClickListener, if it is defined. Performs all normal actions associated with clicking: reporting accessibility event, playing a sound, etc.
        Overrides:
        performClick in class View
        Returns:
        True there was an assigned OnClickListener that was called, false otherwise is returned.
      • performLongClick

        public boolean performLongClick()
        Description copied from class: View
        Call this view's OnLongClickListener, if it is defined. Invokes the context menu if the OnLongClickListener did not consume the event.
        Overrides:
        performLongClick in class View
        Returns:
        True if one of the above receivers consumed the event, false otherwise.
      • setRouteTypes

        public void setRouteTypes(int types)
      • getRouteTypes

        public int getRouteTypes()
      • onCreateDrawableState

        protected int[] onCreateDrawableState(int extraSpace)
        Description copied from class: View
        Generate the new Drawable state for this view. This is called by the view system when the cached Drawable state is determined to be invalid. To retrieve the current state, you should use View.getDrawableState().
        Overrides:
        onCreateDrawableState in class View
        Parameters:
        extraSpace - if non-zero, this is the number of extra entries you would like in the returned array in which you can place your own states.
        Returns:
        Returns an array holding the current Drawable state of the view.
        See Also:
        View.mergeDrawableStates(int[], int[])
      • drawableStateChanged

        protected void drawableStateChanged()
        Description copied from class: View
        This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown.

        Be sure to call through to the superclass when overriding this function.

        Overrides:
        drawableStateChanged in class View
        See Also:
        Drawable.setState(int[])
      • verifyDrawable

        protected boolean verifyDrawable(Drawable who)
        Description copied from class: View
        If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying. This allows animations for those drawables to be scheduled.

        Be sure to call through to the super class when overriding this function.

        Overrides:
        verifyDrawable in class View
        Parameters:
        who - The Drawable to verify. Return true if it is one you are displaying, else return the result of calling through to the super class.
        Returns:
        boolean If true than the Drawable is being displayed in the view; else false and it is not allowed to animate.
        See Also:
        View.unscheduleDrawable(android.graphics.drawable.Drawable), View.drawableStateChanged()
      • onDetachedFromWindow

        public void onDetachedFromWindow()
        Description copied from class: View
        This is called when the view is detached from a window. At this point it no longer has a surface for drawing.
        Overrides:
        onDetachedFromWindow in class View
        See Also:
        View.onAttachedToWindow()
      • onDraw

        protected void onDraw(Canvas canvas)
        Description copied from class: View
        Implement this to do your drawing.
        Overrides:
        onDraw in class View
        Parameters:
        canvas - the canvas on which the background will be drawn
      • setExtendedSettingsClickListener

        public void setExtendedSettingsClickListener(View.OnClickListener listener)
      • showDialog

        public void showDialog()
        Asynchronously show the route chooser dialog. This will attach a DialogFragment to the containing Activity.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 220 / 158697729. Delta: 0.05362 с