public class ViewUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
combineMeasuredStates(int curState,
int newState)
Merge two states as returned by
ViewCompat.getMeasuredState(android.view.View) ()}. |
static void |
computeFitSystemWindows(View view,
Rect inoutInsets,
Rect outLocalInsets)
Allow calling the hidden method
computeFitSystemWindows(Rect, Rect) through
reflection on view . |
static boolean |
isLayoutRtl(View view) |
static void |
makeOptionalFitsSystemWindows(View view)
Allow calling the hidden method
makeOptionalFitsSystem() through reflection on
view . |
public static boolean isLayoutRtl(View view)
public static int combineMeasuredStates(int curState, int newState)
ViewCompat.getMeasuredState(android.view.View)
()}.curState
- The current state as returned from a view or the result
of combining multiple views.newState
- The new view state to combine.public static void computeFitSystemWindows(View view, Rect inoutInsets, Rect outLocalInsets)
computeFitSystemWindows(Rect, Rect)
through
reflection on view
.public static void makeOptionalFitsSystemWindows(View view)
makeOptionalFitsSystem()
through reflection on
view
.