CheckBox选择框居于右边

<CheckBox

    android:id="@+id/checkbox1"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:layout_margin="@dimen/px20dp"

    android:layoutDirection="rtl"

    android:text="选择框在右边"

    android:textColor="@color/all_text_33_color"

    android:textSize="@dimen/px30dp"/>


添加一个  android:layoutDirection="rtl"属性,让布局从右边到左边

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容