How to move Toggle Button Label to right side

人走茶凉 提交于 2019-12-13 02:24:22

问题


Hi i am using a toggle button , in xml, and have set text as allSchools

My code is

 <Switch
    android:id="@+id/switch1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_above="@+id/execute_Search"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="18dp"
    android:textColor="@color/white"
    android:text="All Schools" />

It is displaying the toggle button on the right and the label on the left.

I want it to be the other way around.

来源:https://stackoverflow.com/questions/16986875/how-to-move-toggle-button-label-to-right-side

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!