简体   繁体   中英

Change color on DatePicker

是否可以更改DatePick日历中单元格的单击颜色?

Yes, override the style and pass it to your layout with a style attribute. Additionally you can create a custom style on a per Activity basis or whole Application basis. (Acitivty styles will override Application styles.)

Expanded for Comment You can use the existing DatePicker (and all widgets for that matter) as a super class. Override the existing methods and provide your customization. To help integrate your new widget with your layouts check Modifying an Existing View Type in Custom Components Dev Guide article.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM