public class

CompatHelpers

extends Object
java.lang.Object
   ↳ com.usebutton.sdk.util.CompatHelpers

Summary

Nested Classes
class CompatHelpers.RippleBackground  
Public Constructors
CompatHelpers()
Public Methods
static Bundle createSceneTransition(Activity activity, String transitionName, View view)
static int getColor(Context context, int colorResource)
static Drawable getDrawable(Context context, int resource)
static int getMinimumHeight(View view)
static int getMinimumWidth(View view)
static void setBackground(View view, Drawable drawable)
static void setPriorityHigh(Notification.Builder builder)
static void setShowWhen(Notification.Builder builder)
static ColorStateList stateListFromPrimaryColor(int primary)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CompatHelpers ()

Public Methods

public static Bundle createSceneTransition (Activity activity, String transitionName, View view)

public static int getColor (Context context, int colorResource)

Returns
  • the color value represented by colorResource
Throws
if resource is not found

public static Drawable getDrawable (Context context, int resource)

Returns
  • the drawable from resource
Throws
if resource is not found

public static int getMinimumHeight (View view)

public static int getMinimumWidth (View view)

public static void setBackground (View view, Drawable drawable)

public static void setPriorityHigh (Notification.Builder builder)

public static void setShowWhen (Notification.Builder builder)

public static ColorStateList stateListFromPrimaryColor (int primary)