Slide item to increment TextView

5

Is there a component that, when sliding an item from a ListView , increments a TextView on the item itself?

As in the image below:

Sliding to the right increments according to the value that shows TextView on the left. The reverse happens when we slide to the right.

    
asked by anonymous 05.12.2014 / 21:49

1 answer

0

I do not know if this type of question is valid here in the OS, since it is about "search" component, and no doubt rs programming. But anyway, here's the answer from the SO in English:

  

This component does what you need .

Example declaration in the component's own documentation:

<com.fortysevendeg.swipelistview.SwipeListView 
        xmlns:swipe="http://schemas.android.com/apk/res-auto"
        android:id="@+id/example_lv_list"
        android:listSelector="#00000000"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        swipe:swipeFrontView="@+id/front"
        swipe:swipeBackView="@+id/back"
        swipe:swipeActionLeft="[reveal | dismiss]"
        swipe:swipeActionRight="[reveal | dismiss]"
        swipe:swipeMode="[none | both | right | left]"
        swipe:swipeCloseAllItemsWhenMoveList="[true | false]"
        swipe:swipeOpenOnLongPress="[true | false]"
        swipe:swipeAnimationTime="[miliseconds]"
        swipe:swipeOffsetLeft="[dimension]"
        swipe:swipeOffsetRight="[dimension]"
/>

where:

  • swipeFrontView - required - front view
  • swipeBackView - required - background view

Original OS support

    
06.12.2014 / 01:51