docs: Fixed attribute mismatch between XML and Java code samples for a "Clip" drawable. am: aacd1ba6a7

am: cad4233268

Change-Id: I570fbf597d1a771b01b095b78c70b7f928c9fc2b
This commit is contained in:
Kevin Hufnagle
2016-09-30 15:49:08 +00:00
committed by android-build-merger

View File

@@ -1270,7 +1270,7 @@ the right edge, a right gravity clips the left edge, and neither clips both edge
progressively reveal the image:</p>
<pre>
ImageView imageview = (ImageView) findViewById(R.id.image);
ClipDrawable drawable = (ClipDrawable) imageview.getDrawable();
ClipDrawable drawable = (ClipDrawable) imageview.getBackground();
drawable.setLevel(drawable.getLevel() + 1000);
</pre>