Hi andy ,
I m using ExpandableListView in which i want to have two - three textviews when expanded. In child.xml i added two textviews with binding:text="text1" and binding:text="text2" .but when i try to expand the view no value appear - it appears blank . In log it says
07-18 19:32:12.769: E/Binder(7779): AttributeBinder.bindAttributeWithObservable() : Error when resolving statement 'text1'
07-18 19:32:12.769: E/Binder(7779): AttributeBinder.bindAttributeWithObservable() : Error when resolving statement 'text2'
I reffered you Markup Demo. there in child_template.xml there is only textview where binding:text=".". What to do for multiple textviews.. ?
child.xml ------------------
<?xml version="1.0" encoding="utf-8"?>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
binding:text="text1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
binding:text="text2" />
</LinearLayout>
</LinearLayout>
master_template.xml
android:layout_width="match_parent"
android:layout_height="50dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textSize="21sp"
binding:text="Title" />
</LinearLayout>
Main.xml
<?xml version="1.0" encoding="utf-8"?>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ExpandableListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
binding:childItemSource="'DetailsChild'"
binding:childItemTemplate="@layout/child"
binding:itemSource="GroupItemsMaster"
binding:itemTemplate="@layout/master_template" />
</LinearLayout>