I am wondering if this is possible:
In the layout file, I included the view:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<include
layout="@layout/includedView" />
</LinearLayout>
This view included contains this:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="48dip" >
<ImageView
...
/>
<TextView
....
/>
</RelativeLayout>
My question is: is it possible to set the text for the text view inside the included view from a layout that includes the view (so from layout 1)?
Hope my question is clear, if not, please ask.
source
share