I have this include
I have to "include" this "include" two times, in the same layout.
How can I get the TextView inside RL1? I thought I could do this:
RelativeLayout layout1 = (RelativeLayout) findViewById(R.id.RL1);
TextView textView = (TextView)layout1.findViewById(R.id.textViewId);
but this way seems that I get the same Instance of the TextView, both from RL1 and RL2.
This is the full layout:
<LinearLayout>
<RelativeLayout
android:id="@+id/RL1">
<include layout="@layout/game_area"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/RL2">
<include layout="@layout/game_area"/>
</RelativeLayout>
</LinearLayout>
Thank you in advance