Jump to content

Help in AlertDialog.Builder text show's in white and completely invisible

NystriX

The title says "Do you wish to leave?" In black

The two buttons says "Yes" and "No" as you can see those are white and completely invisible (you can barely see them if i hold on them), how can i change them to black?

 

 

Screenshot_2020-04-02-01-31-15-799_eranmordo_com.thumb.jpg.a878daf4f3b5eb6866c23e91e5eb8373.jpg

 

Screenshot_2020-04-02-01-31-19-586_eranmordo_com.thumb.jpg.ea41bff1d14344ab7616406a0c905560.jpg

PS2 Fat(JP) : PS2 S Silver(EU) : PS3 Super Slim : Nintendo Switch
Wii(x2) : SNES CE : Xbox One : Xbox 360 S(EU) : PS Vita 2000
Link to comment
Share on other sites

Link to post
Share on other sites

 

 

AlertDialog alertDialog = new AlertDialog.Builder(this)
                        .setTitle("בטוח שאתה רוצה להתנתק?")
                        .setMessage("יציאה תמחק את הניקוד שלך")
                        .setPositiveButton("כן", new DialogInterface.OnClickListener() {
                            @Override
                            public void onClick(DialogInterface dialogInterface, int i) {
                                DBref.Auth.signOut();// מוציא את המשתמש
                                DBref.CurrentUser=null;// מאספס אותו
                                startActivity (new Intent (gallery.this, login.class));
                                Toast.makeText (getApplicationContext(),"נתראה בקרוב!" ,Toast.LENGTH_SHORT).show();
                                finish();
                            }
                        })
                        .setNegativeButton("לא", new DialogInterface.OnClickListener() {
                            @Override
                            public void onClick(DialogInterface dialogInterface, int i) {
                                Toast.makeText(getApplicationContext(), "בוטל" , Toast.LENGTH_LONG).show();
                            }
                        }).show();

 

 

 

PS2 Fat(JP) : PS2 S Silver(EU) : PS3 Super Slim : Nintendo Switch
Wii(x2) : SNES CE : Xbox One : Xbox 360 S(EU) : PS Vita 2000
Link to comment
Share on other sites

Link to post
Share on other sites

you prop have overwritten some styles.xml (src/main/res/values/styles.xml)

 

if i where you i would try to change some colors till i find the right tag, the tags could be something like android:colorAccent | colorPrimaryVariant | colorOnSurface

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×