Is there any option to grab to more Views without ViewGroups?



in android you can select one view with "id". but is there any option to select more views (like "group" in CSS)?


f.e.__i want to select the View and(!) the TextView, without use an extra LayoutView. Is there any Group-Tag`? or is there any other option to use the id more than once?



<View
android:id="@+id/cardFront"
android:layout_width="300dp"
android:layout_height="407dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/image"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/string2"
/>

No comments:

Post a Comment