Hello, I'm new to Android, wondered how you can use one xml file in several Activity / Fragments. There are specific objects, the xml file differs in a couple of lines:
object.xml:
<LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/ll_information" android:padding="10dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="16sp" android:textColor="@color/object_color" android:text="@string/object_description" /> </LinearLayout> I would like to use this xml file in several Activity , with the exception of android:text and andoid:textColor , the value of which will be specific to each object. How can I access these attributes and change them? Thank!
Intentor is it better to use differentlayout'ы? - NikiZ