android - How to show slide option in ListView in appcelerator -
i'm building simple app in appcelerator , have using listview custom template.
so result can obtain if try start ma app.
this ok, want implement delete function in mail's app. want if slid list item left right, system show cancel option this:
so code of custom listview:
<listview id="elementslist" defaultitemtemplate="elementtemplate" onitemclick="listitemclick"> <templates> <itemtemplate name="elementtemplate" class="itemtemplate"> <view id="atomproperties"> <label bindid="name" id="name" iditem="" idomnia=""/> <view id="secondline"> <label class="line2 fieldlabel" text="from: " /> <label class="line2" bindid="datestart" id="datestart" /> <label class="line2 fieldlabel" text=" to: " /> <label class="line2" bindid="dateend" id="dateend" /> </view> <label bindid="quantity" id="quantity" left="0"/> </view> </itemtemplate> </templates> <listsection> </listsection> </listview>
Comments
Post a Comment