appcompat - Vertical alignment of an Android SwitchCompat? -


in android, possible vertical align switchcompat , is, put text above switch instead of on left of switch ?

are looking ..?

enter image description here

try

<linearlayout     android:id="@+id/switchlayout"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:gravity="center"     android:padding="5dp"     android:orientation="vertical">     <textview         android:id="@+id/switchtxt"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:textcolor="#000000"         android:text="switch"/>     <switch         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:rotation="90"         android:layout_margin="10dp"         android:layout_marginleft="3dp"         android:id="@+id/switch1" /> </linearlayout> 

Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -