android.view.View#isLaidOut ( )源码实例Demo

下面列出了android.view.View#isLaidOut ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: android_9.0.0_r45   文件: ChangeBounds.java
private void captureValues(TransitionValues values) {
    View view = values.view;

    if (view.isLaidOut() || view.getWidth() != 0 || view.getHeight() != 0) {
        values.values.put(PROPNAME_BOUNDS, new Rect(view.getLeft(), view.getTop(),
                view.getRight(), view.getBottom()));
        values.values.put(PROPNAME_PARENT, values.view.getParent());
        if (mReparent) {
            values.view.getLocationInWindow(tempLocation);
            values.values.put(PROPNAME_WINDOW_X, tempLocation[0]);
            values.values.put(PROPNAME_WINDOW_Y, tempLocation[1]);
        }
        if (mResizeClip) {
            values.values.put(PROPNAME_CLIP, view.getClipBounds());
        }
    }
}
 
源代码2 项目: scene   文件: AbsoluteChangeBounds.java
private void captureValues(TransitionValues values) {
    View view = values.view;
    if (view.isLaidOut() || view.getWidth() != 0 || view.getHeight() != 0) {
        values.view.getLocationInWindow(tempLocation);
        values.values.put(PROPNAME_WINDOW_X, tempLocation[0]);
        values.values.put(PROPNAME_WINDOW_Y, tempLocation[1]);
    }
}
 
源代码3 项目: ListItemView   文件: ViewUtils.java
/**
 * Returns whether or not the view has been laid out
 **/
public static boolean isLaidOut(View view) {
    if (Build.VERSION.SDK_INT >= 19) {
        return view.isLaidOut();
    }

    return view.getWidth() > 0 && view.getHeight() > 0;
}
 
源代码4 项目: MaterialMasterDetail   文件: ViewUtils.java
/**
 * Returns whether or not the view has been laid out
 **/
static boolean isLaidOut(View view) {
    if (Build.VERSION.SDK_INT >= 19) {
        return view.isLaidOut();
    }

    return view.getWidth() > 0 && view.getHeight() > 0;
}
 
源代码5 项目: letv   文件: ViewCompatKitKat.java
public static boolean isLaidOut(View view) {
    return view.isLaidOut();
}
 
源代码6 项目: Transitions-Everywhere   文件: ViewUtils.java
@Override
public boolean isLaidOut(@NonNull View v, boolean defaultValue) {
    return v.isLaidOut();
}
 
源代码7 项目: android-signaturepad   文件: ViewCompat.java
/**
 * Returns true if {@code view} has been through at least one layout since it
 * was last attached to or detached from a window.
 *
 * See http://developer.android.com/reference/android/support/v4/view/ViewCompat.html#isLaidOut%28android.view.View%29
 *
 * @param view the view
 * @return true if this view has been through at least one layout since it was last attached to or detached from a window.
 */
public static boolean isLaidOut(View view) {
    // Future (API19+)...
    if (Build.VERSION.SDK_INT >= 19) {
        return view.isLaidOut();
    }
    // Legacy...
    return view.getWidth() > 0 && view.getHeight() > 0;
}
 
源代码8 项目: SSForms   文件: ViewCompat.java
/**
 * Returns true if {@code view} has been through at least one layout since it
 * was last attached to or detached from a window.
 *
 * See http://developer.android.com/reference/android/support/v4/view/ViewCompat.html#isLaidOut%28android.view.View%29
 *
 * @param view the view
 * @return true if this view has been through at least one layout since it was last attached to or detached from a window.
 */
public static boolean isLaidOut(View view) {
    // Future (API19+)...
    return view.isLaidOut();
    // Legacy...
}
 
 方法所在类
 同类方法