Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.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 禁用并排日期选择器_Android_Datepicker - Fatal编程技术网

Android 禁用并排日期选择器

Android 禁用并排日期选择器,android,datepicker,Android,Datepicker,如何禁用活动中显示的并排日期选择器(在KitKat/Android 4.4下运行,我正在使用Sony Xperia运行),我一直在努力寻找这个,左侧包含滚动部分,右侧包含完整日历,我只希望显示完整日历: 和布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wi

如何禁用活动中显示的并排日期选择器(在
KitKat/Android 4.4
下运行,我正在使用
Sony Xperia
运行),我一直在努力寻找这个,左侧包含滚动部分,右侧包含完整日历,我只希望显示完整日历:

和布局:

<?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" >

 ....
 ....
    <DatePicker
        android:id="@+id/dpResult"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>

....
....

日期选择器
有一个属性


使用android:datePickerMode=“calendar”只显示日历。

您想要什么?。。。当然你是从看文件开始的。。。不为什么?似乎你想要的第一个属性很少hanks@Tanis.7x,我会搜索它。如果没有android:spinnersShown=“false”,它将无法工作,但非常感谢!
<?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" >

 ....
 ....
    <DatePicker
        android:id="@+id/dpResult"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>