建立一個衛星菜單我已經指出朝着這個項目位置:在我的項目
https://github.com/siyamed/android-satellite-menu
在下載看起來是巨大的。但我無法在我的應用程序中獲得簡單的版本。我已經添加了提供給我的項目的.jar,它出現在dependsancys中。我遇到的問題是xml文件。它是這樣提供的:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:sat="http://schemas.android.com/apk/res/android.view.ext"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<android.view.ext.SatelliteMenu
android:id="@+id/menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:layout_margin="8dp"
sat:satelliteDistance="170dp"
sat:mainImage="@drawable/ic_launcher"
sat:totalSpacingDegree="90"
sat:closeOnClick="true"
sat:expandDuration="500"/>
</FrameLayout>
SO上的另一篇文章說將包類型更改爲您自己的包。所以,我把它改爲:
xmlns:sat="http://schemas.android.com/apk/res/my.app"
但我仍然得到這個錯誤的XML文件:
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'
我試圖改變這裏也包減速:
<android.view.ext.SatelliteMenu
android:id="@+id/menu"
和其中一個的組合。但我只是不斷收到同樣的錯誤。
我在做什麼錯?
它修復了編譯時錯誤..但是當我運行它強制關閉 – 2014-06-02 06:59:22