Skip to content

Showcase is not displayed #32

Description

@EnricoAncis

Hi,

I'm trying to use your ShowcaseView library, I has followed as is in the read me but the showcase is not displayed.
This's my simple code:

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center">

        <Button
            android:id="@+id/button"
            android:layout_width="80dp"
            android:layout_height="50dp"
            android:text="Button" />

</LinearLayout>

MainActivity.java

import com.erkutaras.showcaseview.ShowcaseManager;

public class MainActivity extends AppCompatActivity  {

@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

      Button btn = (Button) findViewById(R.id.button);

     ShowcaseManager.Builder builder = new ShowcaseManager.Builder();
        builder.context(this)
                .key("KEY")
                .developerMode(true)
                .view(btn)
                .circle()
                .descriptionTitle("LOREM IPSUM")
                .descriptionText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
                .buttonText("Done")
                .add()
                .build()
                .show();
    }

}

What I doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions