Wednesday, November 18, 2015

How to use character & in android strings.xml

Use this Code for TextView in your Xml
<TextView   
  android:layout_width="wrap_content"  
  android:layout_height="wrap_content" 
  android:text="Backup &amp; Restore "  
  android:textSize="30dp"  
  android:textColor="#33B5E5" 
  android:id="@+id/textView"  
 />

out put
Backup & Restore

No comments:

Post a Comment