public class FoxBaseKeyboardUtils
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
FoxBaseKeyboardUtils.OnSoftInputChangedListener |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clickBlankArea2HideSoftInput()
Click blank area to hide soft input.
|
static void |
fixAndroidBug5497(android.app.Activity activity)
Fix the bug of 5497 in Android.
|
static void |
fixAndroidBug5497(android.view.Window window)
Fix the bug of 5497 in Android.
|
static void |
fixSoftInputLeaks(android.app.Activity activity)
Fix the leaks of soft input.
|
static void |
fixSoftInputLeaks(android.view.Window window)
Fix the leaks of soft input.
|
static void |
hideSoftInput(android.app.Activity activity)
Hide the soft input.
|
static void |
hideSoftInput(android.view.View view)
Hide the soft input.
|
static boolean |
isSoftInputVisible(android.app.Activity activity)
Return whether soft input is visible.
|
static void |
registerSoftInputChangedListener(android.app.Activity activity,
FoxBaseKeyboardUtils.OnSoftInputChangedListener listener)
Register soft input changed listener.
|
static void |
registerSoftInputChangedListener(android.view.Window window,
FoxBaseKeyboardUtils.OnSoftInputChangedListener listener)
Register soft input changed listener.
|
static void |
showSoftInput(android.app.Activity activity)
Show the soft input.
|
static void |
showSoftInput(android.view.View view)
Show the soft input.
|
static void |
showSoftInput(android.view.View view,
int flags)
Show the soft input.
|
static void |
toggleSoftInput()
Toggle the soft input display or not.
|
static void |
unregisterSoftInputChangedListener(android.view.Window window)
Unregister soft input changed listener.
|
public static void showSoftInput(android.app.Activity activity)
public static void showSoftInput(android.view.View view)
view - The view.public static void showSoftInput(android.view.View view,
int flags)
view - The view.flags - Provides additional operating flags. Currently may be
0 or have the InputMethodManager.SHOW_IMPLICIT bit set.public static void hideSoftInput(android.app.Activity activity)
activity - The activity.public static void hideSoftInput(android.view.View view)
view - The view.public static void toggleSoftInput()
public static boolean isSoftInputVisible(android.app.Activity activity)
activity - The activity.true: yesfalse: nopublic static void registerSoftInputChangedListener(android.app.Activity activity,
FoxBaseKeyboardUtils.OnSoftInputChangedListener listener)
activity - The activity.listener - The soft input changed listener.public static void registerSoftInputChangedListener(android.view.Window window,
FoxBaseKeyboardUtils.OnSoftInputChangedListener listener)
window - The window.listener - The soft input changed listener.public static void unregisterSoftInputChangedListener(android.view.Window window)
window - The window.public static void fixAndroidBug5497(android.app.Activity activity)
Don't set adjustResize
activity - The activity.public static void fixAndroidBug5497(android.view.Window window)
Don't set adjustResize
window - The window.public static void fixSoftInputLeaks(android.app.Activity activity)
activity - The activity.public static void fixSoftInputLeaks(android.view.Window window)
window - The window.public static void clickBlankArea2HideSoftInput()
Copy the following code in ur activity.