fredericojssilva / showtipsview Goto Github PK
View Code? Open in Web Editor NEWHighligth specific points of interest of your app
License: Apache License 2.0
Highligth specific points of interest of your app
License: Apache License 2.0
Please help ??
Hi,
The code below works fine until data is cleared from shared preferences from settings/app folder.
Code is shown below and is executed in a fragment .:
/**
showtips = new ShowTipsBuilder(getActivity())
.setTarget(spinnerArrow)
.setTitle("Select Connection Type to display dataLimit")
.setDescription("Displays Data/Time graph for chosen connection type")
.setDelay(800)
.build()
;
showtips.setDisplayOneTimeID(1);
showtips.setDisplayOneTime(true);
showtips.show(getActivity());
showtips.setCallback(new ShowTipsViewInterface(){
@Override
public void gotItClicked() {
//Lunch new showtip
showSettingstips = new ShowTipsBuilder(getActivity())
.setTarget(mSettings)
.setTitle("Set Settings")
.setDescription("Choose connection type")
.setDelay(800)
.build();
showSettingstips.setDisplayOneTimeID(2);
showSettingstips.setDisplayOneTime(true);
showSettingstips.show(getActivity());
}
});*/
ERROR:
11-28 15:39:03.556: E/AndroidRuntime(26772): FATAL EXCEPTION: main
11-28 15:39:03.556: E/AndroidRuntime(26772): java.lang.NullPointerException
11-28 15:39:03.556: E/AndroidRuntime(26772): at net.frederico.showtipsview.ShowTipsView$2.run(ShowTipsView.java:150)
11-28 15:39:03.556: E/AndroidRuntime(26772): at android.os.Handler.handleCallback(Handler.java:730)
11-28 15:39:03.556: E/AndroidRuntime(26772): at android.os.Handler.dispatchMessage(Handler.java:92)
11-28 15:39:03.556: E/AndroidRuntime(26772): at android.os.Looper.loop(Looper.java:176)
11-28 15:39:03.556: E/AndroidRuntime(26772): at android.app.ActivityThread.main(ActivityThread.java:5419)
11-28 15:39:03.556: E/AndroidRuntime(26772): at java.lang.reflect.Method.invokeNative(Native Method)
11-28 15:39:03.556: E/AndroidRuntime(26772): at java.lang.reflect.Method.invoke(Method.java:525)
11-28 15:39:03.556: E/AndroidRuntime(26772): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
11-28 15:39:03.556: E/AndroidRuntime(26772): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
11-28 15:39:03.556: E/AndroidRuntime(26772): at dalvik.system.NativeStart.main(Native Method)
Can we use this Showcase with ABS??
And can u provide code that has Backward Compatibility to API 8 or API 10 bcoz I do require in older model also...
Expecting +ve response..!!
And thanx for sharing the code..
Hello,
I noticed that when I set titleColor and circleColor I get strange results.
This is what I get without specifying any color:
ShowTipsView showtips = new ShowTipsBuilder(MyActivity.this)
.setTarget(myLayout)
.setTitle("Completamento automatico dei nomi")
.setDescription("Selezionando la casella \"Salva i nomi dei passeggeri\" i nominativi verranno salvati per le prossime prenotazioni")
.setButtonText(getResources().getString(R.string.ok))
.setCloseButtonTextColor(R.color.black)
.setButtonBackground(ContextCompat.getDrawable(getApplicationContext(), R.color.LightGrey))
.setBackgroundAlpha(94)
.build();
If I specify a circleColor and a titleColor I'd expect to see them applied. Actually, it seems to revert back to some default.
ShowTipsView showtips = new ShowTipsBuilder(MyActivity)
.setTarget(myLayout)
.setCircleColor(R.color.white)
.setTitle("Completamento automatico dei nomi")
.setTitleColor(R.color.hc_red)
.setDescription("Selezionando la casella \"Salva i nomi dei passeggeri\" i nominativi verranno salvati per le prossime prenotazioni")
.setDelay(500)
.setButtonText(getResources().getString(R.string.ok))
.setCloseButtonTextColor(R.color.black)
.setButtonBackground(ContextCompat.getDrawable(getApplicationContext(), R.color.LightGrey))
.setBackgroundAlpha(94)
.build();
This happens as well if I apply some default color as R.color.common_plus_signin_btn_text_light instead of R.color.hc_red, which is customized.
Hi,
This library seems great. Can you add it to Maven Central ?
I don't know why but the Gradle link isn't working.
Thanks
Hi , is there a method to set image as background ?
There are a proguard rules?
When i run with minifyEnabled = true screen are not showing text and the button
Thanks in advance
Hello,
Is it possible to target a menu item ?
Thank's
why it is taking some duration when we call setCallBack to display another ShowTips?
plz reply fast..
Hi,
It would be great if you could provide a sample where how to set callbacks if you want to show hints for more than three targets in a layout. I'm having an issue when I tried to call the third time. For Ex:
ShowTipsView showSettingstips,showtips;
showtips = new ShowTipsBuilder(getActivity())
.setTarget(spinnerArrow)
.setTitle("Showtips1")
.setDescription("ShowTips1")
.setDelay(800)
.build()
;
showtips.show(getActivity());
showtips.setCallback(new ShowTipsViewInterface(){
@OverRide
public void gotItClicked() {
//Lunch new showtip
showSettingstips = new ShowTipsBuilder(getActivity())
.setTarget(mSettings)
.setTitle("showtips2")
.setDescription("showtips2")
.setDelay(800)
.build();
showSettingstips.show(getActivity());
/********how do i put callback for showSettingtips???? ***/
}
});
I want to show a third hint once the "showSettingstips's got it button is clicked .How do i enable a callback for showSettingstips ??????
Hello,
is there a way to make the backgroundColor() work with opacity ?
I tried this on the ShowTipsView
setBackgroundColor(Color.parseColor("#99000000"))
but the background is still fully opaque.
I am doing it wrong ?
Thanks by advance.
Adrian
hello, how to change the shape of the tip, it is rounded rectangle instead of round?
Is there a way to move the "Got it" button so it doesn't overlap the target?
Hi
This library is good
But in android 4.2.2,show black page and seem the opacity is 1.0 for all time
What's problem?
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.