Available Methods
- getAttributes ( )
- addFlags ( )
- setAttributes ( )
- setStatusBarColor ( )
- clearFlags ( )
- getDecorView ( )
- setFlags ( )
- setGravity ( )
- setLayout ( )
- FEATURE_OPTIONS_PANEL
- setBackgroundDrawable ( )
- getClass ( )
- findViewById ( )
- setWindowAnimations ( )
- setSoftInputMode ( )
- setBackgroundDrawableResource ( )
- requestFeature ( )
- setNavigationBarColor ( )
- FEATURE_PROGRESS
- FEATURE_ACTION_BAR
- setType ( )
- FEATURE_INDETERMINATE_PROGRESS
- performPanelIdentifierAction ( )
- Callback ( )
- setContentView ( )
- getStatusBarColor ( )
- PROGRESS_VISIBILITY_OFF
- FEATURE_CONTEXT_MENU
- setEnterTransition ( )
- FEATURE_NO_TITLE
- peekDecorView ( )
- PROGRESS_INDETERMINATE_OFF
- PROGRESS_INDETERMINATE_ON
- getNavigationBarColor ( )
- setCallback ( )
- PROGRESS_SECONDARY_START
- PROGRESS_VISIBILITY_ON
- setDimAmount ( )
- setReenterTransition ( )
- PROGRESS_START
- getCurrentFocus ( )
- FEATURE_ACTION_BAR_OVERLAY
- isFloating ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.widget.Button
- android.text.TextUtils
- android.widget.LinearLayout
- android.content.pm.PackageManager
- android.support.annotation.Nullable
- android.widget.EditText
- android.support.annotation.NonNull
- android.annotation.TargetApi
- android.graphics.Rect
Java Code Examples for android.view.Window#getCurrentFocus()
The following examples show how to use
android.view.Window#getCurrentFocus() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KPSwitchFSPanelLayoutHandler.java From imsdk-android with MIT License | 5 votes |
@Override public void recordKeyboardStatus(Window window) { final View focusView = window.getCurrentFocus(); if (focusView == null) { return; } if (isKeyboardShowing) { saveFocusView(focusView); } else { focusView.clearFocus(); } }
Example 2
Source File: KPSwitchFSPanelLayoutHandler.java From letv with Apache License 2.0 | 5 votes |
public void recordKeyboardStatus(Window window) { View focusView = window.getCurrentFocus(); if (focusView != null) { if (this.isKeyboardShowing) { saveFocusView(focusView); } else { focusView.clearFocus(); } } }
Example 3
Source File: KPSwitchFSPanelLayoutHandler.java From JKeyboardPanelSwitch with Apache License 2.0 | 5 votes |
@Override public void recordKeyboardStatus(Window window) { final View focusView = window.getCurrentFocus(); if (focusView == null) { return; } if (isKeyboardShowing) { saveFocusView(focusView); } else { focusView.clearFocus(); } }