Guest User

activity_main.xml

a guest
Jan 3rd, 2016
7,551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.62 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="match_parent"
  4.     android:layout_height="match_parent"
  5.     android:orientation="vertical" >
  6.  
  7.  
  8.     <TextView
  9.         android:id="@+id/textView"
  10.         android:layout_width="wrap_content"
  11.         android:layout_height="wrap_content"
  12.         android:layout_marginBottom="16dp"
  13.         android:text="Contoh RadioButton Android"
  14.         android:textSize="20sp" />
  15.     <TextView
  16.         android:id="@+id/textView2"
  17.         android:layout_width="wrap_content"
  18.         android:layout_height="wrap_content"
  19.         android:layout_marginBottom="16dp"
  20.         android:text="Pilih makanan favorit:"
  21.         android:textSize="15sp" />
  22.  
  23.     <RadioGroup
  24.         android:id="@+id/rg"
  25.         android:layout_width="wrap_content"
  26.         android:layout_height="wrap_content"
  27.         >
  28.  
  29.         <RadioButton
  30.             android:layout_width="fill_parent"
  31.             android:layout_height="wrap_content"
  32.             android:id="@+id/rbbaso"
  33.             android:text="Baso Tahu"
  34.             />
  35.         <RadioButton
  36.             android:layout_width="fill_parent"
  37.             android:layout_height="wrap_content"
  38.             android:id="@+id/rbMie"
  39.             android:text="Mie Ayam"
  40.             />
  41.  
  42.  
  43.  
  44.     </RadioGroup>
  45.  
  46.     <TextView
  47.         android:layout_width="fill_parent"
  48.         android:layout_height="fill_parent"
  49.         android:gravity="center|bottom"
  50.         android:text="okedroid.com"
  51.         android:textColor="#2ecc71"
  52.         android:textSize="29sp" />
  53.  
  54.  
  55. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment