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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -