1

CommonsWare,我的 Touchlist 有一些问题。在一个单独的项目中启动 Demo 没有任何问题。但是当我尝试在我现有的项目中导入文件时,在我声明你的 TouchListView 的 xml 文件中它说:

错误:在包'it.sec'中找不到属性'normal_height'的资源标识符-错误:在包'it.sec'中找不到属性'expanded_height'的资源标识符-错误:找不到属性'grabber'的资源标识符包“it.sec”-错误:在包“it.sec”中找不到属性“remove_mode”的资源标识符

有人知道我要做什么吗?提前致谢

鼠尾草

4

1 回答 1

2

当您创建自定义布局时,请使用类似这样的内容(并且不要忘记将“YOUR_APPLICATION_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"
/>
于 2011-12-07T15:32:52.213 回答