Advertisement
SkolaRajakAndroid

ToggleButton-Layout

Aug 28th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.90 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="fill_parent"
  4.    android:layout_height="fill_parent"
  5.    android:orientation="vertical" >
  6.  
  7.     <ToggleButton
  8.        android:id="@+id/toggleButton1"
  9.        android:layout_width="wrap_content"
  10.        android:layout_height="wrap_content"
  11.        android:text="ToggleButton" />
  12.  
  13.     <ToggleButton
  14.        android:id="@+id/toggleButton2"
  15.        android:layout_width="wrap_content"
  16.        android:layout_height="wrap_content"
  17.        android:textOn="@string/toggle_turn_on"
  18.        android:textOff="@string/toggle_turn_off"
  19.        android:checked="true" />
  20.  
  21.     <Button
  22.        android:id="@+id/btnDisplay"
  23.        android:layout_width="wrap_content"
  24.        android:layout_height="wrap_content"
  25.        android:text="@string/btn_display" />
  26.  
  27. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement