How to import ShowcaseView into Eclipse?

ShowcaseView contained in the zip file here . But what am I downloading and how to import it into Eclipse?

+6
source share
4 answers

After 2 days I will succeed, I created the steps for importing ShowcaseView into Eclipse, which may be useful to you.

How to use window display in Eclipse.

  • Download ShowcaseView from github and extract.

  • Now follow the step to import .

     - 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. 

    (After importing, you can see two imported projects: "main" and "SampleActivity", you can change "main" as " libShowcaseView " and "SampleActivity" as " ShowcaseViewDemo " so you can easily identify. :))

  • Perhaps you see an error in "ShowcaseViewDemo" (do not worry ...), see the src/ folder is also empty (in both <libShowcaseView "and" ShowcaseViewDemo ") :) correctly ???

  • Make the following packages in the libShowcaseView project. See an example.

     - com.github.amlcurran.showcaseview - com.github.amlcurran.showcaseview.targets 

    and Move all java files from /java/com/github/amlcurran/showcaseview and /java/com/github/amlcurran/showcaseview/targets respectively.

  • Make the following packages in the ShowcaseViewDemo project. See an example.

     - com.github.amlcurran.showcaseview.sample - com.github.amlcurran.showcaseview.sample.animations - com.github.amlcurran.showcaseview.sample.legacy - com.github.amlcurran.showcaseview.sample.v14 

    and move files as described above (from the java folder, respectively) .

  • Now right-click on "libShowcaseView" project-> properties-> Android-> Move down and select "Library" , then add actionbarsherlock " as a library. See Preview

  • Now add to the library in ShowcaseViewDemo. Go to the properties of "ShowcaseViewDemo" β†’ Android-> Add-> select "libShowcaseView" β†’ Ok ...

  • I think you did not encounter an error. You can execute.

You can request any offer or help at any time.

Happy ShowcaseViewing ...

+20
source

The easiest way:

  • Create an empty Android application project in the Eclipse workspace.
  • Copy the files in ShowcaseView / library / folder github to a new folder with the project database.
  • Update project in Eclipse.
  • Go to the project properties - Android and select "Library"
  • Clean unnecessary things and create.

It should be ready to add as a dependency of your application.

Alternatively, you can choose another library project project. Copy it inside this library folder, edit it according to your new project name, etc. And then import into Eclipse. But it’s more hardcore if you don’t know what you are doing. Soure: How to create these libraries from GitHub

+3
source

Following ツ Pratik Butani ツ Answer and use Android Support Support to replace ActionBarSherlock

  • In project.properties libShowcaseView and ShowcaseViewDemo

    • add target=android-21
  • Right click on "libShowcaseView" Properties-> Android-> Library- > Add ... select AppCompat (support android support v7) β†’ Ok

  • In styles.xml ShowcaseViewDemo

    • Edit android:Theme.Holo.Light , Theme.Sherlock.Light , Theme.Sherlock.Light.DarkActionBar to Theme.AppCompat

    • Remove <item name="android:fontFamily">sans-serif-light</item> in ListItemBigText

  • In ActionItemsSampleActivity.java

    • change SherlockActivity to ActionBarActivity , getSupportMenuInflater to getMenuInflater .
  • In MultipleActionItemsSampleActivity.java

    • change SherlockActivity to ActionBarActivity
    • change com.actionbarsherlock.app.ActionBar.OnNavigationListener to android.support.v7.app.ActionBar.OnNavigationListener
    • change getSupportMenuInflater to getMenuInflater
+1
source

Do it there:

  • Download ShowcaseView from github `
  • Create the package com.github.amlcurran.schowcaseview and com.github.amlcurran.schowcaseview.targets in your eclipse project.
  • Extract ShowcaseView-master.zip or rar.

  • Go to library/src/main/java/ and copy com/github/amlcurran/showcaseview java files in the com.github.amlcurran.schowcaseview package.

  • Do the same for com/github/amlcurran/showcaseview/targets in com.github.amlcurran.schowcaseview.targets .
  • Finally, copy the other files to the differents drawables, layouts, value folder (copy to the old value files, for example style.xml).
+1
source

Source: https://habr.com/ru/post/958642/


All Articles