Android 为什么我的日期选择器没有边框图形?
嗨 我找了一整天,想弄明白为什么我的约会选择者看起来是这样的 唉。。。。现在我无法发布我的照片:/ 我的布局一点也不奇特Android 为什么我的日期选择器没有边框图形?,android,android-layout,datepicker,Android,Android Layout,Datepicker,嗨 我找了一整天,想弄明白为什么我的约会选择者看起来是这样的 唉。。。。现在我无法发布我的照片:/ 我的布局一点也不奇特 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" an
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000">
<TimePicker
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/timePicker"
android:layout_gravity="center_horizontal"
/>
<DatePicker
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/datePicker"
android:layout_gravity="center_horizontal"
android:datePickerMode="spinner"
android:calendarViewShown="false"
android:padding="20dp" />
</LinearLayout>
这取决于您为活动选择的主题。
尝试更改它,您的datepicker将被更改您可以使用Android的DatePickerDialog,只需通过编程实现,而无需在XML中定义它。以下是我的一个项目中的一个片段: