与TouchListView和拖放(commonsware)问题 [英] Problems with TouchListView and Drag and Drop (commonsware)

查看:204
本文介绍了与TouchListView和拖放(commonsware)问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CommonsWare,我有一些问题,你Touchlist。启动演示在sperate项目心不是什么问题。但是当我尝试导入的文件在我exsisting项目,在我宣布你TouchListView XML文件是这样说:

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:

错误:未发现在包'it.sec'属性'normal_height'资源标识符
     - 错误:未找到封装属性expanded_height'资源标识符
     it.sec
     - 错误:未发现在包'it.sec'属性'抓取'资源标识符
     - 错误:没有在包中发现属性remove_mode'资源标识符'it.sec

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

推荐答案

当你将创建一个自定义布局使用这样的事情(不要忘记更改YOUR_APPLICATION_PACKAGE_NAME给你真正的包名: - )

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"
/>

这篇关于与TouchListView和拖放(commonsware)问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆