可以自己做网站,wordpress英文写作插件,石家庄高端网站开发,网站建设vps一、CheckBox 让文字在选择框的左边 #xff0c;在布局文件里面添加下面一行就可以。
android:layoutDirectionrtl 即可实现
android:paddingStart10dp 设置框文间的间距
二、使用的是left to right attr namelayoutDirection在布局文件里面添加下面一行就可以。
android:layoutDirectionrtl 即可实现
android:paddingStart10dp 设置框文间的间距
二、使用的是left to right attr namelayoutDirection!-- Left-to-Right. --enum nameltr value0 /!-- Right-to-Left. --enum namertl value1 /!-- Inherit from parent. --enum nameinherit value2 /!-- Locale. --enum namelocale value3 //attr
三、测试效果 CheckBoxandroid:idid/new_proto_checkboxandroid:layout_width0dpandroid:layout_heightwrap_contentandroid:layout_weight1android:layout_marginBottom0dpandroid:layoutDirectionrtlandroid:paddingStart0dpandroid:textnew-protoandroid:checkedfalseandroid:visibilityvisible/