2
你好,我进口jazzylistview样本项目,我得到的布局文件中的以下错误:错误导入时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'
请帮我,我该怎么办?的应用程序= “http://schemas.android.com/apk/res/com.twotoasters.jazzylistview.sample”
这里,而不是使用/com.twotoasters.jazzylistview.sample使用你的包:
您的日志清楚地表明,您错过了上述属性。您的示例应用程序必须包含名为effect,only_animate_new_items,only_animate_new_items和only_animate_fling的自定义属性。 – Rekha
属性被传递给我的类的构造函数,但仍然给我错误。 – Qurashi
解决了这个问题。 http://stackoverflow.com/questions/5819369/error-no-resource-identifier-found-for-attribute-adsize-in-package-com-googl – Qurashi