我正在尝试实现siyamed的卫星菜单,并且在整个堆栈中都面临着这个普遍存在的问题,但是即使我阅读了所有答案,也无法解决目前的问题。有人有其他想法可以使id工作吗?谢谢 !

这里是:

图书馆:

https://github.com/siyamed/android-satellite-menu

这里是:

main_activity.xml:

<android.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"

    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
     >

    <!-- The main content view -->

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:sat="http://schemas.android.com/apk/res/android.view.ext"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity"
        android:background="@drawable/front"
        android:gravity="bottom"
        android:orientation="vertical" >


        <TextView
            android:id="@+id/textView2"
            android:layout_width="150dp"
            android:layout_height="60dp"
            android:layout_marginBottom="21dp"
            android:text="@string/cd"
            android:textSize="15sp"
            android:gravity="center_horizontal"/>
     <TextView
            android:id="@+id/textView1"
            android:layout_width="150dp"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:color="@color/white"
            android:textSize="25sp"
            android:gravity="center_horizontal"/>

            <com.cngcnasaud.orar
        android:id="@+id/menu"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|right"
        android:layout_margin="8dp"
        sat:satelliteDistance="170dp"
        sat:mainImage="@drawable/ic_launcher"
        sat:totalSpacingDegree="90"
        sat:closeOnClick="true"
        sat:expandDuration="500"/>





    </LinearLayout>

    <!-- The navigation drawer -->

    <ListView
        android:id="@+id/drawer"
        android:layout_width="300dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:background="@drawable/sdb"
        android:choiceMode="singleChoice"
        android:divider="@android:color/black"
        android:dividerHeight="0dp"
        android:textColor="@android:color/white"
         />






</android.support.v4.widget.DrawerLayout>


错误是:

Multiple annotations found at this line:
    - error: No resource identifier found for attribute 'satelliteDistance' in package
     'android.view.ext'
    - error: No resource identifier found for attribute 'mainImage' in package 'android.view.ext'
    - error: No resource identifier found for attribute 'closeOnClick' in package
     'android.view.ext'
    - error: No resource identifier found for attribute 'expandDuration' in package
     'android.view.ext'
    - error: No resource identifier found for attribute 'totalSpacingDegree' in package
     'android.view.ext'

最佳答案

更改

xmlns:sat="http://schemas.android.com/apk/res/android.view.ext




xmlns:sat="http://schemas.android.com/apk/res-auto"


这应该工作,虽然为我工作。

07-27 19:06