Kevin
08/24/2020, 6:53 AM<LinearLayout
android:id="@+id/linear_main"
xmlns:android="<http://schemas.android.com/apk/res/android>"
xmlns:tools="<http://schemas.android.com/tools>"
xmlns:app="<http://schemas.android.com/apk/res-auto>"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hello World"
android:textColor="@color/Black01"
/>
/*insert some kind of tag in here to call the id of new_image element from second_file.xml*/
</LinearLayout>
second_file.xml
<LinearLayout
android:id="@+id/linear_second"
xmlns:android="<http://schemas.android.com/apk/res/android>"
xmlns:tools="<http://schemas.android.com/tools>"
xmlns:app="<http://schemas.android.com/apk/res-auto>"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/new_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/button_image"
/>
</LinearLayout>
Kevin
08/24/2020, 6:59 AMMichael de Kaste
08/24/2020, 7:02 AMKevin
08/24/2020, 7:04 AM