Chats - WhatsApp Direct Chat without saving number

RadioButtons

How to add Radio Buttons in an Android Application


Radio button allow the user to select one option from a set.

Example of Radio button

  1. <RadioGroup  
  2.         android:layout_width="wrap_content"  
  3.         android:layout_height="wrap_content"  
  4.         android:id="@+id/radioGroupSend">  
  5.   
  6.         <RadioButton  
  7.             android:id="@+id/radioEmail"  
  8.             android:layout_width="fill_parent"  
  9.             android:layout_height="wrap_content"  
  10.             android:text="Email"  
  11.             android:layout_marginTop="10dp"  
  12.             android:checked="false"  
  13.             android:textSize="20dp" />  
  14.   
  15.         <RadioButton  
  16.             android:id="@+id/radioWhatsApp"  
  17.             android:layout_width="fill_parent"  
  18.             android:layout_height="wrap_content"  
  19.             android:text="WhatsApp"  
  20.             android:layout_marginTop="20dp"  
  21.             android:checked="false"  
  22.   
  23.             android:textSize="20dp" />  
  24.     </RadioGroup>  

Post a Comment

Previous Post Next Post