Java 如何在Eclipse中导入ShowcaseView?
Java 如何在Eclipse中导入ShowcaseView?,java,android,eclipse,import,showcaseview,Java,Android,Eclipse,Import,Showcaseview,ShowcaseView包含在Zip文件中。但我到底在下载什么,以及如何在Eclipse中导入它呢?最简单的方法是: 在Eclipse工作区中创建一个空的Android应用程序项目 将github的ShowcaseView/library/folder中的文件复制到新的项目基础文件夹中 在Eclipse中刷新项目 转到项目属性-Android并选择“Is库” 清理不必要的东西,并建立 它应该可以添加为应用程序的依赖项 或者,您可以选择另一个库项目。项目文件并将其复制到此库文件夹中,编辑它以匹配您
ShowcaseView
包含在Zip文件中。但我到底在下载什么,以及如何在Eclipse中导入它呢?最简单的方法是:
来源:在我成功的两天后,我创建了在Eclipse中导入的步骤,这可能对您有所帮助 如何在Eclipse中使用Showcase视图
src/
文件夹也为空(在“”和“”中):)对吗???别介意/java/com/github/amlcurran/showcaseview
和/java/com/github/amlcurran/showcaseview/targets
移动所有java文件快乐的橱窗观看…以下ツ 丁醇普拉提ツ's回答并使用Android支持库替换ActionBarSherlock
- 添加
target=android-21
- 改变
,android:Theme.Holo.Light
,Theme.Sherlock.Light
到Theme.Sherlock.Light.darkaActionBar
Theme.AppCompat
- 在
ListItemBigText
- 将
更改为SherlockActivity
,ActionBarActivity
更改为getSupportMenuInflater
getMenuInflater
- 将
更改为SherlockActivity
ActionBarActivity
- 将
com.actionbarsherlock.app.ActionBar.OnNavigationListener更改为
android.support.v7.app.ActionBar.OnNavigationListener
- 将
更改为getSupportMenuInflater
getMenuInflater
com.github.amlcurran.schowcaseview
和com.github.amlcurran.schowcaseview.targets
library/src/main/java/并复制com.github.amlcurran.schowcaseview
包中的com/github/amlcurran/showcaseview
java文件com.github.amlcurran.schowcaseview.targets
中的com/github/amlcurran/showcaseview/targets执行相同的操作
drawables,layouts,value
(复制旧的值文件,例如style.xml)感谢您提供本教程:)提醒一下:如果您按照以下步骤操作,则需要安装actionbarsherlock库。您只需克隆它,将其作为eclipse中的android项目导入(选中“将项目复制到工作区”)。就这样!这个库在这里可用:Android v7支持库也可以用来代替ActionbarSherlock
- Right click on Project Explorer
- Import -> Android -> Existing Android Code Into Workspace
- Select Extracted "ShowcaseView-master"
- Check both project "library" and "MainActivity"
- Check "Copy projects into workspace"
- Finish.
- com.github.amlcurran.showcaseview
- com.github.amlcurran.showcaseview.targets
- com.github.amlcurran.showcaseview.sample
- com.github.amlcurran.showcaseview.sample.animations
- com.github.amlcurran.showcaseview.sample.legacy
- com.github.amlcurran.showcaseview.sample.v14