Problems with TouchListView and Drag and Drop (commonsware)

强颜欢笑 提交于 2019-12-11 08:42:52

问题


CommonsWare, I got some problems with your Touchlist. Starting the Demo in a sperate project isnt any problem. But when i try to import the files in my exsisting project, in the xml file where i declare your TouchListView it says this:

error: No resource identifier found for attribute 'normal_height' in package 'it.sec' - error: No resource identifier found for attribute 'expanded_height' in package 'it.sec' - error: No resource identifier found for attribute 'grabber' in package 'it.sec' - error: No resource identifier found for attribute 'remove_mode' in package 'it.sec'

Does anybody got an idea what ive to do? Thanks in advance

sMau


回答1:


When you will create a custom layout use something like this (and don't forget to change "YOUR_APPLICATION_PACKAGE_NAME" to you real package name :-)

<com.commonsware.cwac.tlv.TouchListView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tlv="http://schemas.android.com/apk/res/YOUR_APPLICATION_PACKAGE_NAME"

    android:id="@android:id/list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:drawSelectorOnTop="false"
    tlv:normal_height="64dip"
    tlv:grabber="@+id/icon"
    tlv:remove_mode="slideRight"
/>


来源:https://stackoverflow.com/questions/8417400/problems-with-touchlistview-and-drag-and-drop-commonsware

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!