如何设置复选框右侧的文本 [英] How to Set the Checkbox on the right side of the text
本文介绍了如何设置复选框右侧的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何显示Android的复选框,在右侧?
在我的Android应用程序中,我有一个复选框,并以它的一些文字联想。默认文本是在右侧和左侧的复选框。不过,我想提出的复选框右侧。请帮助我。
In my android application, I have a checkbox and some text associate with it. By default the texts are in the right side and the checkbox in left side. But I want to put the checkbox on the right side. Help me please.
推荐答案
我不知道是否有可能或不定型,
I dont know whether it is possible or not by styling ,
但在这里是您的解决方案
But here is a solution for you
使用,
作为值复选框
,再加入的TextView
到左边的复选框
与你想要的文字。
Use ""
as the value of the CheckBox
,then add a TextView
to the left of the CheckBox
with your desired text.
这篇关于如何设置复选框右侧的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文