0
아래와 같이 DialogFragment
에 대한 사용자 지정 레이아웃이 DatePicker
이고 일부 레이블이 있습니다. 하지만 필자는 화이트 필드를 오른쪽으로 제거 할 수는 없습니다. 또한 캘린더에서 하루를 선택 취소 할 수 있습니까 (초기 날짜가없는 경우)? API (26)DatePicker가있는 사용자 지정 대화 상자의 레이아웃에 문제가 있습니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<DatePicker
android:id="@+id/pickerReminderDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/Grey300"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:textAppearanceSmall"
android:padding="@dimen/indent_small"
android:background="@color/colorAccent"
android:textColor="@color/TextInverse"
android:gravity="center_horizontal
android:text="@string/dialogDateNote"/>
</LinearLayout>
작동하지 않습니다. –