gregkorossy / DateTimePicker

Material themed DateTimePickers from the Android framework for all API levels (API 14+)
Apache License 2.0
73 stars 17 forks source link

Feedback DateTimePicker BUG #4

Closed tcqq closed 6 years ago

tcqq commented 6 years ago

Click redbox button before: image Click redbox button after: image

gregkorossy commented 6 years ago

What's the exact question / issue?

tcqq commented 6 years ago

Header layout height be changed. image image

gregkorossy commented 6 years ago

Looks good on my device. What Android version and what device is that?

tcqq commented 6 years ago

Pixel xl

gregkorossy commented 6 years ago

Is this happening with the current released version of the lib or just the one you modified?

tcqq commented 6 years ago

Now I just added more than one setColor method, I did not change the original function of this library

tcqq commented 6 years ago

android studio have this simulators image

tcqq commented 6 years ago

I tested, this problem is real. image image

gregkorossy commented 6 years ago

I understand that, but still, could you try if this is happening with the released one too? My device (HTC 10, 8.0) does not produce this, so it could be either a modification you made or the locale (yours is Chinese if I'm right, mine is English).

tcqq commented 6 years ago

Yes, I will try, when the problem is solved I will let you know.

tcqq commented 6 years ago

I fixed this problem, but i find a new problem image.zip

image image

tcqq commented 6 years ago

After the horizontal screen there will be problems, This is before the above code is run the screenshot. image

tcqq commented 6 years ago

I fixed this problem, The problem is because of the "setHeaderBackgroundColor" method.

If I use "setBackgroundColor" to set it will not have problem, if I use "setBackground" to set, it will have problem. image image

image image

But the strange thing is that the above initialization is using "setBackground" but no problem. image

I really want to know why this is, if you know, please tell me, thanks.