【问题标题】:Error when Importing jazzylistview sample project导入 jazzylistview 示例项目时出错
【发布时间】: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 的自定义属性。
  • 属性被传递给我的类的构造函数,但仍然给我错误。
  • 解决了这个问题。 stackoverflow.com/questions/5819369/…

标签: android jazzylistview


【解决方案1】:

xmlns:app="http://schemas.android.com/apk/res/com.twotoasters.jazzylistview.sample"
此处不要使用 /com.twotoasters.jazzylistview.sample,而是使用您的包名。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-26
    • 1970-01-01
    • 2018-04-20
    • 2014-10-27
    • 2014-07-18
    • 1970-01-01
    • 2015-12-11
    相关资源
    最近更新 更多