Difference between “@+id/” and “@id/” in Android

Difference between “@+id/” and “@id/” in Android
android:id=”@+id/xxx” unique identifier of view
@id/ a reference to the unique identifier

 <TextView
        android:id="@+id/first_element_id"
        .........
 />
    <TextView
        android:id="@+id/second_element_id"
        android:layout_below="@id/first_element_id"
        ..........
 />
This entry was posted in Android Examples Code and tagged . Bookmark the permalink.


Comments are closed.



1,451 views