I am defining an activity layout in two xml files (default and landscape orientation). In both cases, I am using the same views changing only their position and formatting.
which is the correct way to define id attribute of a view:
android:id="@+id/example_text_view" //using @+id in both xml files
Or:
android:id="@+id/example_text_view" //default orientation xml
android:id="@id/example_text_view" //landscape orientation xml
Both seem to work properly unless I entierly remove id declaration from land xml file.