Detailed introduction to modifying datepicker font color and split line color for Android

1、 Introduction to datepicker and TimePicker

Datepicker is a date selection control, which inherits from the FrameLayout class. Its main function is to use the guard to easily select dates. If you want to capture the data change event in the datapicker control modified by the user, you need to add an ondatechangedlistener listener for the datepicker.

TimePicker is a time selection control, which also inherits from the FrameLayout class. The time selection control displays the time of the day (24 hours or am / PM system) to the user and allows the user to select. If you want to capture the event that users modify time data, you need to add an ontimechangedlistener listener to TimePicker.

2、 Modify datepicker font color

Modify datepicker font color: if the font color is not changed by modifying the space color attribute, you can add the following code to the activity corresponding to the listing file androidmanifest.xml by modifying the theme of the activity where datepicker is located:

The datepicker font color can turn black, and the effect is as follows:

3、 Modify datepicker split line color

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>