how to set to left of checkbox textAlignment in android studio
You can set the textAlignment of the checkbox to left by using the following code:
<CheckBox
android:id="@+id/my_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Checkbox"
android:textAlignment="viewStart"/>
In the above code, the textAlignment attribute is set to viewStart which aligns the text to the left of the checkbox. You can also use start instead of viewStart which will align the text to the left for left-to-right languages and to the right for right-to-left languages.
原文地址: https://www.cveoy.top/t/topic/b4Qk 著作权归作者所有。请勿转载和采集!