Shanaz K
Shanaz K

Reputation: 698

Problems with TouchListView and Drag and Drop?

I created an application this application contain listview , and I want to remove items one by one by sliding to right or left , and here my code :

<com.commonsware.cwac.tlv.TouchListView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tlv="http://schemas.android.com/apk/res/com.listviewremoveitem"
    android:id="@android:id/list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:drawSelectorOnTop="false"
    tlv:grabber="@+id/icon"
    tlv:normal_height="64dip"
    tlv:remove_mode="slideRight" />

and I got this error :

`Multiple annotations found at this line: - error: No resource identifier found for attribute 'grabber' in package 'com.listviewremoveitem' - error: No resource identifier found for attribute 'remove_mode' in package 'com.listviewremoveitem' - error: No resource identifier found for attribute 'normal_height' in package 'com.listviewremoveitem'

and I found something it's too similar with my error Problems with TouchListView and Drag and Drop (commonsware) but the answer didn't helpful , and this is my package [ package="com.listviewremoveitem" ] .

Does anybody got an idea what I've to do?

Upvotes: 2

Views: 233

Answers (1)

Krylez
Krylez

Reputation: 17820

You'll need to include the file that declares those attributes. For class you're using, this is the cwac_touchlist_attrs.xml file.

Keep in mind that TouchListView is deprecated and no longer maintained. Here's a good alternative: https://www.youtube.com/watch?v=_BZIvjMgH-Q

Upvotes: 2

Related Questions