docs: Fixed attribute mismatch between XML and Java code samples for a "Clip" drawable. am: aacd1ba6a7 am: 2f37605c6d
am: e1efecadf1
Change-Id: I32f420e20df928a0e53077bc0030c935d4c92c8a
This commit is contained in:
@@ -1270,7 +1270,7 @@ the right edge, a right gravity clips the left edge, and neither clips both edge
|
|||||||
progressively reveal the image:</p>
|
progressively reveal the image:</p>
|
||||||
<pre>
|
<pre>
|
||||||
ImageView imageview = (ImageView) findViewById(R.id.image);
|
ImageView imageview = (ImageView) findViewById(R.id.image);
|
||||||
ClipDrawable drawable = (ClipDrawable) imageview.getDrawable();
|
ClipDrawable drawable = (ClipDrawable) imageview.getBackground();
|
||||||
drawable.setLevel(drawable.getLevel() + 1000);
|
drawable.setLevel(drawable.getLevel() + 1000);
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user