dybarsky / spots-dialog

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

Include id Resource instead only raw string #25

Closed collura closed 6 years ago

collura commented 7 years ago

What do you think to put another SpotsDialog constructor with Id Resource to take the parameter smaller when we create or setMessage besides be good practice ? I only to get pass strings directly.

Something so:

   public SpotsDialog(Context context, int message) {
        this(context);
        this.message = context.getResources().getString(message);
    }

Thanks.

dybarsky commented 7 years ago

Hi, @collura! Thanks for suggestion. I'll add new constructor with Ids

dybarsky commented 6 years ago

Hi, sorry for late response. Actually, you need to use SpotsDialog.Builder class. So you can pass message resource id