-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
借用你的思路和框架,修复了空行、偶尔setText无效、padding设置的bug #29
Comments
GallenShao
changed the title
借用你的思路和框架,修复了空行、偶尔setText无效的bug
借用你的思路和框架,修复了空行、偶尔setText无效、padding设置的bug
Aug 7, 2017
想问一下 如果要实现加载Html里的图片还要文字两端对齐,应该怎么办 |
@MarkHan1213 你可以用webview |
我现在就是有一个页面,显示的是一段可编辑的带图片的文字,然后不清楚用WebView的话字两端会不会对齐,我使用现在这个AlignTextView的话,图片是没办法出来的 |
@MarkHan1213 webview你可以用css控制两端对齐,这个控件的实现里面就比较暴力,就是完全自己计算并画一个一个字,所以是不支持span的 |
是啊,看了看TextView的源码,没找到那Html有关的地方,那我使用WebView试一下,谢谢你! |
我看下,把问题修正下。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public class AlignTextView extends AppCompatTextView {
}
The text was updated successfully, but these errors were encountered: