下面列出了android.view.View#getKeyDispatcherState ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@TargetApi(Build.VERSION_CODES.KITKAT)
public static boolean isViewAttachedToWindow(View v) {
if (ATLEAST_KITKAT) {
return v.isAttachedToWindow();
} else {
// A proxy call which returns null, if the view is not attached to the window.
return v.getKeyDispatcherState() != null;
}
}
@TargetApi(Build.VERSION_CODES.KITKAT)
public static boolean isViewAttachedToWindow(View v) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
return v.isAttachedToWindow();
} else {
// A proxy call which returns null, if the view is not attached to the window.
return v.getKeyDispatcherState() != null;
}
}
public static Object a(View view)
{
return view.getKeyDispatcherState();
}
public static Object getKeyDispatcherState(View view) {
return view.getKeyDispatcherState();
}
public static Object getKeyDispatcherState(View view) {
return view.getKeyDispatcherState();
}
public static Object getKeyDispatcherState(View view) {
return view.getKeyDispatcherState();
}
public static Object getKeyDispatcherState(View view) {
return view.getKeyDispatcherState();
}