I want to do something of this kind that when I swip to the left side, the white area moves to the left, and the red image appears. when it is normal the white area occupies the entire screen. How Can I Do This in Titanium?
This is default iOS behaviour and not Android, so I am going to point you to iOS documentation!
You can do it with both the TableView and ListView on iOS.
At the ListView Documentation, there is a section Editing Support
. This links to canEdit
so you can enable the buttons, and also editAction
so you can define which buttons you want to show up. This should get you started.
Something similar is also true for TableView but there you need to set editable
to true. Functionality is a little bit more limited for TableView so I recommend using ListViews instead. Be aware this feature will then only be iOS 8+, which I also recommend setting as a minimum in your tiapp.xml