tags:

views:

80

answers:

0

Hi,

I have a layout xml file which includes another smaller xml file.

<include layout="@layout/text" android:id="@+id/test1"/>
<include layout="@layout/text" android:id="@+id/test2"/>

where my text.xml is

<merge xmlns:android="http://schemas.android.com/apk/res/android"&gt;
        <TextView android:id="@android:id/text1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceLarge"
        />
</merge>

My question is how can I specify different text view in my text view in test1 and test2 in my layout xml file? Or I have to do that in my java code?

Thank you.