List of usage examples for android.graphics Outline isEmpty
public boolean isEmpty()
From source file:codetail.graphics.drawables.LayerDrawable.java
/** * Populates <code>outline</code> with the first available (non-empty) layer outline. * * @param outline Outline in which to place the first available layer outline *//* w w w.j ava 2 s.c o m*/ @Override @TargetApi(Build.VERSION_CODES.LOLLIPOP) public void getOutline(Outline outline) { if (!Android.isLollipop()) { return; } final LayerState state = mLayerState; final ChildDrawable[] children = state.mChildren; final int N = state.mNum; for (int i = 0; i < N; i++) { children[i].mDrawable.getOutline(outline); if (!outline.isEmpty()) { return; } } }