请我将下拉列表的效果设置为添加新的空项并进行编辑,当列表项失去焦点时,它将被保存
请检查以下android应用程序以了解我想要做什么
https://play.google.com/store/apps/details?id=com.xuchdeid.clear&hl=en
如果有人知道我可以遵循的任何算法库,请告诉我。
答案 0 :(得分:0)
我找到了这个
https://github.com/47deg/android-swipelistview
https://www.youtube.com/watch?v=E0352OH488M!
>XML Usage
如果您决定使用SwipeListView作为视图,您可以在xml布局中定义它,如下所示:
<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]"
/>