dybarsky / spots-dialog

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

setMessage #32

Closed oarage closed 6 years ago

oarage commented 6 years ago

dialog.setMessage("loading..."); call setMessage method crash

KhuzaimaTariq commented 6 years ago

You can change message in custom theme For example: Provide you own style resource: <?xml version="1.0" encoding="utf-8"?>

Pass it into constuctor: new SpotsDialog(context, R.style.Custom).show();

ntsparis commented 6 years ago

Try setMessage before build dialog like:

new SpotsDialog.Builder() .setContext(this) .setTheme(R.style.Custom) .setMessage("loading...) .build() .show();

dybarsky commented 6 years ago

@oarage It crashes when you call dialog.setMessage before dialog.show. Please use SpotsDialog.Builder for that.