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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -