Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 924d93bb authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Convert ImageSpan sample code to Java

Bug: 127617625
Test: make offline-sdk-docs
Change-Id: I74a79fa6f0adc650d175cca3caa61c37df20df38
parent b54aa3d9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -46,10 +46,10 @@ import java.io.InputStream;
 * <p>
 * For example, an <code>ImagedSpan</code> can be used like this:
 * <pre>
 * SpannableString string = SpannableString("Bottom: span.\nBaseline: span.");
 * SpannableString string = new SpannableString("Bottom: span.\nBaseline: span.");
 * // using the default alignment: ALIGN_BOTTOM
 * string.setSpan(ImageSpan(this, R.mipmap.ic_launcher), 7, 8, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
 * string.setSpan(ImageSpan(this, R.mipmap.ic_launcher, DynamicDrawableSpan.ALIGN_BASELINE),
 * string.setSpan(new ImageSpan(this, R.mipmap.ic_launcher), 7, 8, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
 * string.setSpan(new ImageSpan(this, R.mipmap.ic_launcher, DynamicDrawableSpan.ALIGN_BASELINE),
 * 22, 23, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
 * </pre>
 * <img src="{@docRoot}reference/android/images/text/style/imagespan.png" />