Java Code Examples for android.view.View.isLaidOut()

The following are Jave code examples for showing how to use isLaidOut() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ListItemView   File: ViewUtils.java   View Source Code Vote up 6 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 2
Project: code-scanner   File: Utils.java   View Source Code Vote up 6 votes
public static boolean isLaidOut(@NonNull View view) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        return view.isLaidOut();
    } else {
        return view.getWidth() > 0 && view.getHeight() > 0;
    }
}
 
Example 3
Project: MaterialMasterDetail   File: ViewUtils.java   View Source Code Vote up 6 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 4
Project: Stage   File: AnimatorCurtain.java   View Source Code Vote up 6 votes
private static boolean isLaidOut(View view) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    return view.isLaidOut();
  } else {
    return view.getWidth() > 0 && view.getHeight() > 0;
  }
}
 
Example 5
Project: letv   File: ViewCompatKitKat.java   View Source Code Vote up 5 votes
public static boolean isLaidOut(View view) {
    return view.isLaidOut();
}
 
Example 6
Project: boohee_v5.6   File: ViewCompatKitKat.java   View Source Code Vote up 5 votes
public static boolean isLaidOut(View view) {
    return view.isLaidOut();
}