Datepicker and time picker

Hi everyone, I wanted to know if it’s possible and how to change the colors of the datapicker and the timepicker. I did several tests without result

Why not show what you did?

1 Like

I would like to change the background color of this element

You have two choices (default, light theme) or dark theme but as it seems, it’s a bug in themes, drat!

Works only with light theme and you get this

and the pink color you can control with Accent Color

Btw, You have to build your app to se it

/Boban

3 Likes

thanks for the boban answer, color accent is editable from the screen screen1? Quite right?

I tried compiling my app but when I try to install it gives me an error in analyzing the package !! :(:sleepy:

After you first install of your app, did you change your package name or is it the first time you install your app

/Boban

It’s the first time I’ve tried to install it. this is a project imported from app inventor, it’s a problem?

Difficult to say what is the cause, what is your Min SDK in the app and your phones android version

/Boban

1 Like

Community search There was a problem parsing

/Boban

1 Like

seems to have managed to solve the problem by deleting the package name

filling out the application with a clear theme the background of the elements is white. I don’t understand why the color of the title bar text is black. If I set dark theme the text color of the title bar turns white. What am I doing wrong?

As I already mentioned

You need to know the differences between Themes

Dark Theme should produce this

Light Theme and Default Theme (also known as Light Theme with Dark Actionbar) should produce this

And the only difference between these two Light Theme and Default Theme should be this and nothing else

@Kodular don’t know if this is intentionally done from your side but should be corrected

/Boban

1 Like

Which theme have which bug?

Default Theme

/Boban

2 Examples: Default / Light / Dark (with APKs)

Android 9

Android 5 (Default / Light / Dark)

I have left all other settings in the designer at default and changed only the Theme.

1 Like

In other words, only the light theme works as it should

/Boban

1 Like

Thanks @bodymindpower,

@Mika Since I use Light Theme most of the time I didn’t care about how the others looked however, I took a look and It seems that Default Theme and Dark Theme has shifted some theme part

Default Theme -> Button, Dialog and 3 dot Menu belongs to Dark Theme

Light Theme -> bright buttons should have black text as Default

Dark Theme -> Button, Dialog and 3 dot Menu belongs to Default Theme and bright buttons should have black text as Default, Action bar text color has two colors but should be white.

/Boban

5 Likes

I want to get date picker Date as DD/MM/YYYY this format to calculate duration how Can I get that way…