Class ViewCompat
- java.lang.Object
-
- com.batch.android.messaging.view.helper.ViewCompat
-
public class ViewCompat extends java.lang.ObjectCompat view methods
-
-
Constructor Summary
Constructors Constructor Description ViewCompat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgenerateViewId()Generate a value suitable for use inView.setId(int).static android.graphics.PointgetScreenSize(android.content.Context context)static booleanisTouchExplorationEnabled(android.content.Context context)Returns whether touch exploration is enbaled
-
-
-
Method Detail
-
generateViewId
public static int generateViewId()
Generate a value suitable for use inView.setId(int). This value will not collide with ID values generated at build time by aapt for R.id.- Returns:
- a generated ID value
-
getScreenSize
public static android.graphics.Point getScreenSize(android.content.Context context)
-
isTouchExplorationEnabled
public static boolean isTouchExplorationEnabled(android.content.Context context)
Returns whether touch exploration is enbaledThat often means that Talkback is enabled, but more importantly it means that the user is using some kind of touch assist. Meaning that they'll be slower to tap things.
Usually you'll want to use this method to disable things based on timers, like an auto dismiss.
-
-