Simple non interactive ListView Android -
please cope me im new android , have done lot of searching on own, this, , im fed not finding proper way.
this custom listview template. rowbuttonlayout.xml.
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" > <textview android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@+id/label" android:textsize="19.6dp" > </textview> <checkbox android:id="@+id/check" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:layout_marginleft="3.6dp" android:layout_marginright="9.6dp" > </checkbox> <textview android:id="@+id/result" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignbaseline="@+id/check" android:layout_alignbottom="@+id/check" android:layout_toleftof="@+id/check" android:text="@string/nothing" /> </relativelayout> what want create in pic without header , footer.
as on layout ill having textview before checkbox well. ill adding dynamic button @ footer. dont want users interact listview. button should clickable , when click want run calculations , show them in relevant "result" textview , check checkbox next show have calculated it. meaning have access each , every "result" textview , "check" checkbox in code.
please provide me guidance coding app. im fed looking through complex codes trying learn on own. many many help. shavinka
check out below links...
how checked items android listview?
http://sunil-android.blogspot.in/2013/04/android-listview-checkbox-example.html
http://fundoocode.net/android-listview-checkbox-example-onitemclicklistener-and-onclicklistener/
http://www.mysamplecode.com/2012/07/android-listview-checkbox-example.html
Comments
Post a Comment