简体   繁体   中英

Why does my DatePicker have no border graphics?

Way it looks

Hi.

I have been looking all day to try and find out why my DatePicker looks that way.

Sigh.... now i can not post my picture :/

My layout is nothing fancy.

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

It depends on the theme you have chosen for the activity. Try changing it and your datepicker will be changed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM