Is there a way to make the datepicker in android 4.0 look like the easy one on 2.x devices? I don't really wanna to use a button with a dialog, but that is absolutely enormous, i don't want the "calendar" thing. Thanks in advance
1、在apk》=11之后的版本中,有一个方法,调用可以部分解决,但是想完全解决是没有办法,因为都是平台提供的。
picker.setCalendarViewShown(false);
System components look depends on the platform. You may be able (or not) to influence things like colors, but not functionality (unless you implement your own logic or layout). So in general, answer to your question is "No".
本文探讨了在不同版本的Android系统中DatePicker组件显示效果的差异,并尝试通过设置属性来改善用户体验。虽然无法彻底解决外观上的不一致性,但提供了一种可行的调整方案。


1154

被折叠的 条评论
为什么被折叠?



