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>