小编PIO*_*ONA的帖子

carousel android error:在包中找不到属性'UseReflection'的资源标识符

实现轮播时我的xml文件有问题.main.xml布局显示以下错误

在此行找到多个注释:

- error: No resource identifier found for attribute 'UseReflection' in package 
 ''
- error: No resource identifier found for attribute 'SelectedItem' in package 
 ''
- error: No resource identifier found for attribute 'Items' in package ''

- error: No resource identifier found for attribute 'Names' in package 
 ''
Run Code Online (Sandbox Code Playgroud)

主要布局如下:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:pj="http://schemas.android.com/apk/res/packagename"

    xmlns:bm="package name"

    android:layout_width="fill_parent"

    android:layout_height="fill_parent"

    android:orientation="vertical"
>

     <TextView

        android:layout_width="fill_parent"

        android:layout_height="fill_parent"

        android:layout_weight="0.5"

        android:text="text"

        android:id="@+id/selected_item"

        android:background="#1E1921"

        android:textColor="#A85E4F"

        android:textStyle="normal"

        />

   <package.controls.Carousel 

         android:id="@+id/carousel"

         android:layout_width="413dp"

         android:layout_height="446dp"

         android:layout_gravity="center_horizontal"

         pj:Items="@array/entries"

         pj:Names="@array/names"

         pj:SelectedItem="0"

         pj:UseReflection="true" > …
Run Code Online (Sandbox Code Playgroud)

xml android carousel android-layout

1
推荐指数
1
解决办法
4089
查看次数

标签 统计

android ×1

android-layout ×1

carousel ×1

xml ×1