Android DatePickerDialog不适用于Android 5
我正在开发一个应用程序,在注册表上,用户需要输入他的生日。我用了DatePickerDialog。该应用程序在我的手机和模拟器上运行良好,但当我在旧手机(android 5)上测试时,当我想要选择日期时,该应用程序停止运行 这是我的XML代码Android DatePickerDialog不适用于Android 5,android,datepicker,datepickerdialog,Android,Datepicker,Datepickerdialog,我正在开发一个应用程序,在注册表上,用户需要输入他的生日。我用了DatePickerDialog。该应用程序在我的手机和模拟器上运行良好,但当我在旧手机(android 5)上测试时,当我想要选择日期时,该应用程序停止运行 这是我的XML代码 <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_hei
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Date"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
app:boxStrokeColor="@color/colorPrimary"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusableInTouchMode="false"
android:onClick="BirthDatePicker"
/>
</com.google.android.material.textfield.TextInputLayout>
塞特:
public void setDate(String date) {
mDate = date;
}
由于这个限制,我把我的评论放在了回答栏:“你必须有50个声誉才能发表评论。” 粘贴实际设备的logcat详细信息 我认为这与“风格”问题有关
请务必签出由于此限制,我将我的评论放在回答字段中:“您必须有50个声誉才能发表评论” 粘贴实际设备的logcat详细信息 我认为这与“风格”问题有关 一定要退房
public void setDate(String date) {
mDate = date;
}