erkutaras / showcaseview Goto Github PK
View Code? Open in Web Editor NEWShowcaseView library for Android
License: Apache License 2.0
ShowcaseView library for Android
License: Apache License 2.0
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
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)
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()
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);
}
Hi, how to hide showcase view by clicking the focus view? Thanks
"View" seems to be left behind. "View" doesn't change when displaying multiple Showcases
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?.
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
Hello!
Probably, my question is stupid.....
But I still use jar files as libraries. Do you have one?
Thanks in advance,
I have this error when I try to initialize ShowcaseView in any fragment passing getApplication() as context.
The error occurs at:
java.lang.IllegalArgumentException: radius must be > 0
Is there a working example using this library inside a fragment?
when number of views is there unable to scroll.
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?
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.
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.
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
Used ver 1.5.0 try build inside fragment and my parent activity is FragmentActivity
at com.erkutaras.showcaseview.ShowcaseManager.getSystemUiVisibility(ShowcaseManager.kt:79)
When testing receives the error of the minimum version of the API in 26
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.