In my application I have a ListView with custom rows and I want to add a custom checkbox for each item, like this:
When I click on 'EDIT' I want the ListView translates to right and it appears a custom checkbox at left from each ListView's row.
Is it possible to maintain the ListView at right even if some row icons don't seen (like the star or arrow)? Or if I translate the ListView at right the row is compressed and all icons are visible?
I have put a 'translate' animation:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://ift.tt/nIICcg" >
<translate
android:fromXDelta="0%"
android:toXDelta="17%"
android:duration="750" />
</set>
and I have managed to translate the ListView but after 2 seconds it returns to the initial position ... how can I manage that the ListView maintains at right after translate animation?
Is it better to put a checkbox like 'gone' at left to the row and when 'EDIT' button is pushed to put all checkbox like visible? In this case, Does each row translate to right like the image or it would be compressed and all icons would be visible?
Thanks
Aucun commentaire:
Enregistrer un commentaire