Giter Site home page Giter Site logo

showtipsview's Introduction

output-onlinepngtools
Hi there 👋

Frederico's GitHub stats

showtipsview's People

Contributors

fredericojssilva 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

showtipsview's Issues

NullPointerException at net.frederico.showtipsview.ShowTipsView$2.run(ShowTipsView.java:150)

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)

Compatibility With SherlockActionBar

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

setTitleColor and setCircleColor bring to unpredictable results

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();

screenshot_2016-07-21-16-22-24

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();

screenshot_2016-07-21-16-22-07

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.

Maven Central

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

proguard settings

There are a proguard rules?
When i run with minifyEnabled = true screen are not showing text and the button
Thanks in advance

setCallBack

why it is taking some duration when we call setCallBack to display another ShowTips?
plz reply fast..

setCallback Consecutively for third time

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

BackgroundColor with alpha / transparency

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

thank the writer

hello, how to change the shape of the tip, it is rounded rectangle instead of round?

Show black screen

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?

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.