-
Notifications
You must be signed in to change notification settings - Fork 14
A DatePreference, analogous to EditTextPreference or ListPreference
License
bostonandroid/DatePreference
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
In Eclipse with your project open: 1. In the Package Explorer right click on your project and select "Properties". 2. Select "Java Build Path" -> "Libraries". 3. "Add External JARs..." then select the DatePreference.jar file. In your activity that descends from PreferenceActivity: import org.bostonandroid.datepreference.DatePreference; In your preference XML: <org.bostonandroid.datepreference.DatePreference android:key="dob" android:title="@string/dob" android:defaultValue="1991.01.01" /> To quickly get the Date selected for "dob", in your PreferenceActivity: DatePreference.getDateFor( PreferenceManager.getDefaultSharePreferences(this), "dob"); To set the date use .setDate(String). To make the JAR: With just the DatePreference source code loaded in Eclipse: In the Package Explorer right click on the "default.jardesc" file and select "Create JAR"
About
A DatePreference, analogous to EditTextPreference or ListPreference
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published