Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android DatePickerDialog不适用于Android 5_Android_Datepicker_Datepickerdialog - Fatal编程技术网

Android DatePickerDialog不适用于Android 5

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

我正在开发一个应用程序,在注册表上,用户需要输入他的生日。我用了DatePickerDialog。该应用程序在我的手机和模拟器上运行良好,但当我在旧手机(android 5)上测试时,当我想要选择日期时,该应用程序停止运行

这是我的XML代码

<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;
    }