Give an ID to your view in android xml file

Give an ID to your view object is very useful if you want to refer to that view later in source code. For example you want to set text of a TextView in source code. To do that, put [cci]android:id[/cci] attibute to your view. In above code, you can see I have put an [cci]android:id=”@+id/textView1″[/cci]. […]

Give an ID to your view in android xml file Read More ยป