【问题标题】:How to add satellite-menu on my project如何在我的项目中添加卫星菜单
【发布时间】:2016-08-14 18:05:26
【问题描述】:

我正在处理旧项目,我不知道如何添加卫星菜单https://github.com/siyamed/android-satellite-menu,它的项目由几个项目组成。所以,我在 Eclipse 中工作,我有旧的源代码。 我在我的项目中导入了所有文件夹,一切正常,不包括 1 个文件夹 - 卫星菜单。据我了解,这是我在这里写的一个库。因此,当我尝试将其作为项目导入时,我遇到了错误:

容器“Android Dependencies”引用了不存在的库 '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 - 不起作用。

【问题讨论】:

标签: java android eclipse jar dependencies


【解决方案1】:

解决方案是将卫星项目添加为库:project->properties->android->is library

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-23
    • 2021-10-25
    • 1970-01-01
    • 2020-02-04
    • 2021-10-01
    • 1970-01-01
    相关资源
    最近更新 更多