When I am adding date picker to my activity. It is added properly. Its date and month part are proper, but, the year part is showing the calendar. I am also getting this error -
The following classes could not be found:
- CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML)
- DatePicker (Change to android.widget.DatePicker, Fix Build Path, Edit XML)
here is the date picker code -
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<DatePicker
android:id="@+id/datePicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
This th the output I am getting(Please ignore volume image).
I want to add it to my app so that I can take input the date of birth from the user. But because of the year part (calendar) it is not looking good.
What can be the problem?Please help.