【发布时间】:2013-08-27 19:16:15
【问题描述】:
您好,我正在导入 jazzylistview 示例项目,但在布局文件中出现以下错误:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.twotoasters.jazzylistview.sample"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background"
tools:context=".MainActivity" >
<com.twotoasters.jazzylistview
android:id="@id/android:list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@null"
app:effect="helix"
app:only_animate_new_items="false"
app:only_animate_fling="false"
app:max_velocity="0" />
</FrameLayout>
我在 com.twotoasters.jazzylistview 行收到以下错误:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'only_animate_fling' in package
'com.twotoasters.jazzylistview.sample'
- error: No resource identifier found for attribute 'max_velocity' in package 'com.twotoasters.jazzylistview.sample'
- error: No resource identifier found for attribute 'effect' in package 'com.twotoasters.jazzylistview.sample'
- error: No resource identifier found for attribute 'only_animate_new_items' in package
'com.twotoasters.jazzylistview.sample'
请帮我怎么办?
【问题讨论】:
-
您的日志清楚地表明,您缺少上述属性。您的示例应用程序必须包含名为 effect、only_animate_new_items、only_animate_new_items 和 only_animate_fling 的自定义属性。
-
属性被传递给我的类的构造函数,但仍然给我错误。
标签: android jazzylistview