This is the test code I was creating to see if I could get it working...
in the layout xml for my activity:
...
<ListView
style="?android:attr/textAppearanceLarge"
android:id="@+id/user_details_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="16dp"
binding:onItemClicked="ARG(ListItemClicked, =id/user_details_list.clickedItem)"
binding:itemSource="STITCH(
SECTION(@string/user_details_section_details, @layout/user_details_list_section),
ADAPTER({source=GeneralInfoDetails, template=@layout/user_details_information_item})
)" />
GeneralInfoDetails is an ArrayListObservable which might contain data about the user, or it might be empty. It is defined in the activity which inflates the xml and this binding is working fine.
In the xml user_details_list_section:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
binding:visibility="ShowSection"
>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="18dip"
android:gravity="bottom"
binding:text="."
/>
<View style="@style/HorizontalDividerView"/>
</LinearLayout>
ShowSection is a BooleanObservable inside the activity inflating the layout.
I was trying a number of combinations, but was unable to get it working... And since I never read any update here or on the blog comments that it was in fact working I decided to post and move on for now :)
Any ideas what might be wrong? Perhaps I am missing something obvious, would be grateful for help.