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.

enter image description here

this ok, want implement delete function in mail's app. want if slid list item left right, system show cancel option this:

enter image description here

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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -