public class ViewUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int[] |
getScreenSize(android.app.Activity activity)
Get the screen dimensions
|
static void |
hideOnScreenKeyboardForEditText(android.app.Activity activity,
android.widget.EditText editText)
Hide On Screen Keyboard for EditText
|
static void |
setOrientation(android.app.Activity activity,
boolean status)
Set orientation change lock
|
public static int[] getScreenSize(android.app.Activity activity)
activity
- the activitypublic static void hideOnScreenKeyboardForEditText(android.app.Activity activity, android.widget.EditText editText)
activity
- the activityeditText
- the edit textpublic static void setOrientation(android.app.Activity activity, boolean status)
activity
- the activitystatus
- the status