TDateEdit, how to set year before to 1900 in calendar picker dialog?


My app in android (developed in Delphi XE8 Firemonkey) needs to search for data prior to the year 1900, I use a TDateEditor, when user clicks to select dates the android calendar picker dialog doesn’t allow dates with years less than 1900, I’d read about styles.xml and testing without success, with the code below;

<?xml version=”1.0″ encoding=”utf-8″?>
<style name=”DateEditStyle” parent=”android:style/Widget.CalendarView”>
<item name=”android:endYear”>2100</item>
<item name=”android:startYear”>1800</item>

And styles.xml deployed in the remote path “res\values\”. Nothing works, how can I solve this?, What do I’m doing wrong?

Many thanks in advance for your help

Comments are closed.