dybarsky / spots-dialog

Android AlertDialog with moving dots progress indicator
MIT License
1.08k stars 242 forks source link

private access in dmx.dialog.SpotsDialog #42

Closed Ponkabonk closed 6 years ago

Ponkabonk commented 6 years ago

SpotsDialog dialog; dialog = new SpotsDialog(this);

0.7 works great. I tried upgrading to 1.1 and keep getting a "private" access error. Can you provide a Java example? error

dybarsky commented 6 years ago

The usage is described in readme.

val dialog: AlertDialog = SpotsDialog.Builder()
    .Builder()
    .setContext(context)
    .setTheme(R.style.Cusom)
    .build()
    .apply {
        show()
    }
Ponkabonk commented 6 years ago

I saw that. Unfortunately, it doesn't seem to work when you convert that to Java and use v1.1.

Sent from my Android device.

-----Original Message----- From: Maksym Dybarskyi notifications@github.com To: d-max/spots-dialog spots-dialog@noreply.github.com Cc: Ponkabonk mike@ponkabonk.com, Author author@noreply.github.com Sent: Thu, 04 Oct 2018 4:36 AM Subject: Re: [d-max/spots-dialog] private access in dmx.dialog.SpotsDialog (#42)

The usage is described in readme.

val dialog: AlertDialog = SpotsDialog.Builder()
    .Builder()
    .setContext(context)
    .setTheme(R.style.Cusom)
    .build()
    .apply {
        show()
    }

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/d-max/spots-dialog/issues/42#issuecomment-426985879

dybarsky commented 6 years ago

"Not working" doesn't really make sense. Is it crashing? Is it showing? Compile error? This works to me

AlertDialog dialog = new SpotsDialog.Builder()
                .setContext(this)
                .setMessage("tes")
                .setCancelable(false)
                .build();

        dialog.show();
Ponkabonk commented 6 years ago

OK. I got it working. Thanks for pointing me in the right direction.

-Mike

From: Maksym Dybarskyi notifications@github.com Sent: Thursday, October 4, 2018 6:48 AM To: d-max/spots-dialog spots-dialog@noreply.github.com Cc: Ponkabonk mike@ponkabonk.com; Author author@noreply.github.com Subject: Re: [d-max/spots-dialog] private access in dmx.dialog.SpotsDialog (#42)

"Not working" doesn't really make sense. Is it crashing? Is it showing? Compile error? This works to me

AlertDialog dialog = new SpotsDialog.Builder() .setContext(this) .setMessage("tes") .setCancelable(false) .build();

    dialog.show();

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/d-max/spots-dialog/issues/42#issuecomment-427025291 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEZEJSF9gwooEbiFK1sWDzr6e2G2_Z46ks5uhhF1gaJpZM4XHC2Y . https://github.com/notifications/beacon/AEZEJWfwBbLchW06caA04GT3a6VPzL_Zks5uhhF1gaJpZM4XHC2Y.gif