Giter Club home page Giter Club logo

showcaseview's People

Contributors

ahmedabdellatiif avatar erkutaras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

showcaseview's Issues

Continuous Show the case

Hi,

I have to show continuous 4 time.
For ex. First case open default then Done click open second case and so on..
so here how to get Done click event show i can call second function

Thank you

Error With Showcase Library "java.lang.IllegalArgumentException: radius must be > 0"

After library integration when i run my app show these errors...!
Can you help me please.

java.lang.IllegalArgumentException: radius must be > 0
at android.graphics.RadialGradient.(RadialGradient.java:91)
at com.erkutaras.showcaseview.ShowcaseView.dispatchDraw(ShowcaseView.kt:159)
at android.view.View.updateDisplayListIfDirty(View.java:18141)
at android.view.View.draw(View.java:18928)
at android.view.ViewGroup.drawChild(ViewGroup.java:4240)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4026)

Showcase is not showing in center of the view.

I have implemented as per below.

val builder = ShowcaseManager.Builder()
                                    builder.context(mActivity)
                                            .view(view.imgProjectSelection)
                                            .descriptionImageRes(android.R.color.transparent)
                                            .descriptionTitle("")
                                            .descriptionText("Select this checkbox and you will see quick progress of this project on home screen")
                                            .buttonText("Got it!")
                                            .colorButtonBackground(mActivity.getColor(R.color.colorPrimary))
                                            .key("TEST")
                                            .developerMode(true)
                                            .colorFocusArea(mActivity.getColor(android.R.color.transparent))
                                            .add().build()
                                            .show()
  • Could this issue due to below code from ShowcaseManager?
private float getCircleCenterY(Rect viewPositionRect) {
            return viewPositionRect.top
                    + ((view.getHeight() - view.getPaddingBottom() - view.getPaddingTop()) / 2);
        }

I think we should either +/- combination for top/bottom or may be -/+ for top/bottom padding.

Right now i have made updates as per below and it is working fine.

private float getCircleCenterY(Rect viewPositionRect) {
            return viewPositionRect.top
                    + ((view.getHeight() - view.getPaddingBottom() + view.getPaddingTop()) / 2);
        }

View

"View" seems to be left behind. "View" doesn't change when displaying multiple Showcases

Bug when the object is in the middle of the screen

When the object is in the middle of the screen, the description text and button are outside the viewing area, so the user cannot touch the button to finish.

A possible solution would be to put a scroll?.

Add Button

I am using your library for creating app tour for my application I want to know how can I add two button horizontally like Next .... Previous and want to add listener on those buttons also.How can I do this. And I want to customise there positions also

scroll issue

when number of views is there unable to scroll.

Showcase is not displayed

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?

Listen to when showcase dismisses

Is there a way to listen to it when user clicks on the button and the showcase is dismissed? I want to take some action on complete.

Buttons of showcase are appearing outside of display

I tried making a sequence of showcase appearances on a view i was making but after the first showcase no button shows up. When I try removing the first showcase the button shows up but part of it is off screen.

Here is an image of a showcase which is done on the top left rectangle after a showcase was done on the bottom left button.
image

What my calls look like

        builder.context(activityRule.getActivity())
                .key("KEY")
                .developerMode(true)
                .view(activityRule.getActivity().findViewById(R.id.button_dashboard_view_init))
                .descriptionImageRes(R.mipmap.ic_launcher)
                .descriptionTitle("First button")
                .descriptionText("Click here to do stuff.")
                .buttonText("Done")
                .buttonVisibility(true)
                .cancelButtonVisibility(true)
                .cancelButtonColor(Color.WHITE)
                .add()                                              //add first showcase
                .view(activityRule.getActivity().findViewById(R.id.linearlayout_dashboard_info))  
                .descriptionTitle("Your Progress")
                .descriptionText("Here is your progress so far")
                .buttonText("Done")
                .buttonVisibility(true)
                .cancelButtonVisibility(true)
                .cancelButtonColor(Color.WHITE)
                .add()                                             //add showcase shown in image
                .build()
                .show();

Note that I'm doing this with Expresso and am just passing an activity rule as the activity

Minimum API 26?

When testing receives the error of the minimum version of the API in 26

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.