如何对齐的TextView到右的Andr​​oid? [英] How to align the textview to right in android?

查看:126
本文介绍了如何对齐的TextView到右的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我显示的日期和板球评分表。但我的问题是,当我显示否 1,2,3,...高达9它工作正常......但是当我10显示,在未来日期列中的日期是移动一个位置正确的,因为<强/>的两位数字10,如何解决这个问题?

I am displaying the date and the cricket score in a table. But my problem is when I am displaying the No 1,2,3,....upto 9 it is working fine...But when I displayed 10 the date in the next date column is moving one place right because of two digit number 10. How to solve this issue?

任何帮助将感激....

Any help will be thankful....

推荐答案

对齐可以用机器人来完成:重力=正确的

另一个选择可能是,检查您的号码是小于10和prePEND零的数字

Another option could be, to check if your number is smaller than 10 and prepend a zero figure

这篇关于如何对齐的TextView到右的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆