Possible Duplicate:
Android CalendarView class cannot be foundDatePicker nie działa, gdy próbuje go używać
Próbowałem oddanie wyboru daty w moim układzie, ale zamiast DatePicker to tylko pokazuje: DatePicker
i ten błąd: The following classes could not be found: - DatePicker (Change to android.widget.DatePicker, Fix Build Path, Edit XML)
ja nie wiem, co to jest, ponieważ mam już DatePicker w mojej aplikacji i działa dobrze, po prostu nie wiem, dlaczego ten teraz nie działa.
<LinearLayout 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"
android:orientation="vertical"
tools:ignore="HardcodedText" >
<TextView
android:id="@+id/tvNomeR"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
<TextView
android:id="@+id/tvDataR"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
<TextView
android:id="@+id/tvMensagemR"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
<DatePicker
android:id="@+id/datePicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/bAdiarR"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Adiar" />
<Button
android:id="@+id/bResponderR"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Responder" />
</LinearLayout >
</LinearLayout>
Bez pokazywania nam odpowiedniego kodu, prawie niemożliwe jest ustalenie, co robisz źle. – Sam
prawdopodobnie brakuje instrukcji "import" –
Problem jest niejasny. Proszę podać kod. Dokładnie gdzie otrzymujesz ten błąd? –