Monday, 26 December 2011

Honeycomb's tab look of DatePicker

Honeycomb's tap look of DatePicker

Create a new Android Project target Android 3.0. Modify main.xml to add a DatePicker:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<DatePicker
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</LinearLayout>


- Compare with traditional look of DatePicker on Phone.

Next:
- Backward compatibility using Android Support Package



No comments:

Post a Comment