belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
CompoundButtonCompat
  public
  
  final
  
  class
  CompoundButtonCompat
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v4.widget.CompoundButtonCompat | 
Helper for accessing CompoundButton.
Summary
Public methods | |
|---|---|
        
        
        static
        
        
        Drawable
     | 
  
    
      
      getButtonDrawable(CompoundButton button)
      
      
        Returns the drawable used as the compound button image  | 
  
        
        
        static
        
        
        ColorStateList
     | 
  
    
      
      getButtonTintList(CompoundButton button)
      
      
        Returns the tint applied to the button drawable  | 
  
        
        
        static
        
        
        PorterDuff.Mode
     | 
  
    
      
      getButtonTintMode(CompoundButton button)
      
      
     | 
  
        
        
        static
        
        
        void
     | 
  
    
      
      setButtonTintList(CompoundButton button, ColorStateList tint)
      
      
        Applies a tint to the button drawable.  | 
  
        
        
        static
        
        
        void
     | 
  
    
      
      setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode)
      
      
        Specifies the blending mode used to apply the tint specified by
   | 
  
Inherited methods | |
|---|---|
  
    
  
    java.lang.Object
  
 | |
Public methods
getButtonDrawable
Drawable getButtonDrawable (CompoundButton button)
Returns the drawable used as the compound button image
| Parameters | |
|---|---|
button | 
        
          CompoundButton  | 
      
| Returns | |
|---|---|
Drawable | 
        |
See also:
getButtonTintList
ColorStateList getButtonTintList (CompoundButton button)
Returns the tint applied to the button drawable
| Parameters | |
|---|---|
button | 
        
          CompoundButton  | 
      
| Returns | |
|---|---|
ColorStateList | 
        |
getButtonTintMode
PorterDuff.Mode getButtonTintMode (CompoundButton button)
| Parameters | |
|---|---|
button | 
        
          CompoundButton  | 
      
| Returns | |
|---|---|
PorterDuff.Mode | 
        the blending mode used to apply the tint to the button drawable | 
setButtonTintList
void setButtonTintList (CompoundButton button, ColorStateList tint)
Applies a tint to the button drawable. Does not modify the current tint
 mode, which is SRC_IN by default.
 
 Subsequent calls to setButtonDrawable(Drawable) should
 automatically mutate the drawable and apply the specified tint and tint
 mode using setTintList(Drawable, ColorStateList).
| Parameters | |
|---|---|
button | 
        
          CompoundButton  | 
      
tint | 
        
          ColorStateList: the tint to apply, may be null to clear tint | 
      
setButtonTintMode
void setButtonTintMode (CompoundButton button, PorterDuff.Mode tintMode)
Specifies the blending mode used to apply the tint specified by
 setButtonTintList(CompoundButton, ColorStateList)} to the button drawable. The
 default mode is SRC_IN.
| Parameters | |
|---|---|
button | 
        
          CompoundButton  | 
      
tintMode | 
        
          PorterDuff.Mode: the blending mode used to apply the tint, may be
                 null to clear tint | 
      
Interfaces
Classes
- AutoScrollHelper
 - CircularProgressDrawable
 - CompoundButtonCompat
 - ContentLoadingProgressBar
 - CursorAdapter
 - DrawerLayout
 - DrawerLayout.LayoutParams
 - DrawerLayout.SavedState
 - DrawerLayout.SimpleDrawerListener
 - EdgeEffectCompat
 - ExploreByTouchHelper
 - ImageViewCompat
 - ListPopupWindowCompat
 - ListViewAutoScrollHelper
 - ListViewCompat
 - NestedScrollView
 - PopupMenuCompat
 - PopupWindowCompat
 - ResourceCursorAdapter
 - ScrollerCompat
 - SimpleCursorAdapter
 - SlidingPaneLayout
 - SlidingPaneLayout.LayoutParams
 - SlidingPaneLayout.SimplePanelSlideListener
 - Space
 - SwipeRefreshLayout
 - TextViewCompat
 - ViewDragHelper
 - ViewDragHelper.Callback