Lines Matching full:outline
20 import android.graphics.Outline;
31 * This sample shows how to clip a {@link View} using an {@link Outline}.
40 /* The {@Link Outline} used to clip the image with. */
81 // Toggle whether the View is clipped to the outline
83 /* The Outline is set for the View, but disable clipping. */
86 Log.d(TAG, String.format("Clipping to outline is disabled"));
92 Log.d(TAG, String.format("Clipping to outline is enabled"));
107 // Invalidate the outline just in case the TextView changed size
132 public void getOutline(View view, Outline outline) {
134 outline.setRoundRect(margin, margin, view.getWidth() - margin,