如何在我的项目中添加卫星菜单
How to add satellite-menu on my project
我在工作中使用旧项目,我不知道如何添加卫星菜单https://github.com/siyamed/android-satellite-menu,而且它的项目由多个项目组成。所以,我在 Eclipse 工作,我有旧的源代码。
我导入了项目中的所有文件夹,一切正常,排除了 1 个文件夹 - 卫星菜单。据我了解,这是我在这里写的图书馆。因此,当我尝试将其作为项目导入时出现错误:
The container 'Android Dependencies' references non existing library
'C:\Users\Vladimir\workspace\satellite-menu\bin\satellite-menu.jar'
来自 GitHub
的文件夹没有 jar
文件,而另一个项目的文件夹有。
这是我的代码的一部分
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:sat="http://schemas.android.com/apk/res/com.wtfmagazine"
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_alignParentBottom="true"
android:layout_gravity="bottom|left"
android:layout_margin="10dp"
sat:closeOnClick="true"
sat:expandDuration="300"
sat:mainImage="@drawable/menu"
sat:satelliteDistance="130dp"
sat:totalSpacingDegree="90" />
那么,我怎样才能将这个菜单附加到这个项目。
我尝试从该文件夹创建 .jar
- 不起作用。
解决方案是将附属项目添加为库:项目->属性->android->是库
我在工作中使用旧项目,我不知道如何添加卫星菜单https://github.com/siyamed/android-satellite-menu,而且它的项目由多个项目组成。所以,我在 Eclipse 工作,我有旧的源代码。 我导入了项目中的所有文件夹,一切正常,排除了 1 个文件夹 - 卫星菜单。据我了解,这是我在这里写的图书馆。因此,当我尝试将其作为项目导入时出现错误:
The container 'Android Dependencies' references non existing library 'C:\Users\Vladimir\workspace\satellite-menu\bin\satellite-menu.jar'
来自 GitHub
的文件夹没有 jar
文件,而另一个项目的文件夹有。
这是我的代码的一部分
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:sat="http://schemas.android.com/apk/res/com.wtfmagazine"
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_alignParentBottom="true"
android:layout_gravity="bottom|left"
android:layout_margin="10dp"
sat:closeOnClick="true"
sat:expandDuration="300"
sat:mainImage="@drawable/menu"
sat:satelliteDistance="130dp"
sat:totalSpacingDegree="90" />
那么,我怎样才能将这个菜单附加到这个项目。
我尝试从该文件夹创建 .jar
- 不起作用。
解决方案是将附属项目添加为库:项目->属性->android->是库