Java Code Examples for android.view.View#isLaidOut()
The following examples show how to use
android.view.View#isLaidOut() .
These examples are extracted from open source projects.
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 Project: android_9.0.0_r45 File: ChangeBounds.java License: Apache License 2.0 | 6 votes |
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()); } } }
Example 2
Source Project: scene File: AbsoluteChangeBounds.java License: Apache License 2.0 | 5 votes |
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]); } }
Example 3
Source Project: ListItemView File: ViewUtils.java License: Apache License 2.0 | 5 votes |
/** * 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; }
Example 4
Source Project: MaterialMasterDetail File: ViewUtils.java License: Apache License 2.0 | 5 votes |
/** * 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; }
Example 5
Source Project: letv File: ViewCompatKitKat.java License: Apache License 2.0 | 4 votes |
public static boolean isLaidOut(View view) { return view.isLaidOut(); }
Example 6
Source Project: Transitions-Everywhere File: ViewUtils.java License: Apache License 2.0 | 4 votes |
@Override public boolean isLaidOut(@NonNull View v, boolean defaultValue) { return v.isLaidOut(); }
Example 7
Source Project: android-signaturepad File: ViewCompat.java License: Apache License 2.0 | 3 votes |
/** * 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; }
Example 8
Source Project: SSForms File: ViewCompat.java License: GNU General Public License v3.0 | 2 votes |
/** * 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... }