TimePicker
スライダーが透明に見えるAndroidで非常に奇妙な動作を経験しています。
以下は2つの画像です。
- ページのリストが空の場合。ご覧のとおり、下部のTimePickerのスライダーは透明です。
- リストにデータが入力されたとき。これはさらに悪いことです。リストの内容は、スライダーの透明な部分に180度反映されます。
これは非常に苛立たしいことです。これまでのところ、これがどのようになったかはわかりません。また、参照用にビューのxmlを添付しています。私が使用しているテーマは変更されていませんTheme.Sherlock.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignLeft="@+id/date_picker"
>
<ListView
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_alignParentTop="true"
android:id="@+id/availabilityListView"
android:layout_above="@+id/add_more"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/suggest_more_time"
android:id="@+id/add_more"
android:layout_gravity="center"
android:layout_alignParentBottom="true"
/>
</RelativeLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/date_picker"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:id="@+id/suggestion_overlay">
<DatePicker
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/date_picker"
android:layout_weight="1"/>
<TimePicker
android:id="@+id/time_picker"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:longClickable="false"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/add_suggestion"
android:id="@+id/suggest_button"/>
</LinearLayout>
</RelativeLayout>