Need help to implement 47degree Android-SwipeListView

前端 未结 1 1349
夕颜
夕颜 2021-02-08 20:44

Need help to implement 47degree Android-SwipeListView

Library URL:

https://github.com/47deg/android-swipelistview

1条回答
  •  闹比i
    闹比i (楼主)
    2021-02-08 21:09

    Finally I managed to integrate 47degree Android-SwipeListView in my own application.

    Works like a charm. Thanks 47degree to write such a wonderful piece of code.

    Solution:

    What is not working!!?

    Including JAR as dependency and attrs.xml in res/values OR referencing to the swipelistview library as lib dependency project in your project is not working.

    What works!!?

    Include following classes into your application package. Also correct package names in these classes to your package name.

    • SwipeListView.java
    • SwipeListViewListener.java
    • SwipeListViewListenerBase.java
    • SwipeListViewTouchListener.java

    Include following xml into your application res/values folder.

    • attrs.xml

    Now you can define and use SwipeListView as follows.

    
    

    Activity code you can use same as displayed in the example on SwipeListView github site.

    https://github.com/47deg/android-swipelistview-sample/blob/master/src/main/java/com/fortysevendeg/android/swipelistview/sample/activities/SwipeListViewExampleActivity.java

    You will need to correct some imports from the code above.

    0 讨论(0)
提交回复
热议问题