Hello ...
i have list view that i bind it with ArrayListObservable of person
like that :
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
binding:itemSource="ADAPTER({source=persons, template=@layout/list_item})"/>
and this is list_item.xml
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="
http://schemas.android.com/apk/res/android"
xmlns:binding="
http://www.gueei.com/android-binding/"
android:id="@android:id/text1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_vertical"
android:paddingLeft="6dip"
android:minHeight="?android:attr/listPreferredItemHeight"
binding:text="name"
/>
and it's work nice
but how can i get the selected person from it when the user click over any person item using mvvm ??
it try to set attribute ( binding:selectedItem="selectedPerson") in the list but it doesn't work ..
i mean for example when the user click at any item of the list it displays selected person name or etc ...
thanks in advance :)