Android APIs
public class

TintButton

extends Button
implements TintableBackgroundView
java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.Button
         ↳ android.support.v7.internal.widget.TintButton

Class Overview

An tint aware Button.

This will automatically be used when you use Button in your layouts. You should only need to manually use this class when writing custom views.

Summary

[Expand]
Inherited XML Attributes
From class android.widget.TextView
From class android.view.View
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
TintButton(Context context)
TintButton(Context context, AttributeSet attrs)
TintButton(Context context, AttributeSet attrs, int defStyleAttr)
Protected Methods
void drawableStateChanged()
This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown.
[Expand]
Inherited Methods
From class android.widget.Button
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface android.support.v4.view.TintableBackgroundView

Public Constructors

public TintButton (Context context)

public TintButton (Context context, AttributeSet attrs)

public TintButton (Context context, AttributeSet attrs, int defStyleAttr)

Protected Methods

protected void drawableStateChanged ()

This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown.

If the View has a StateListAnimator, it will also be called to run necessary state change animations.

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