|
|
@ -1,149 +1,155 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
|
|
|
|
<RelativeLayout |
|
|
|
android:id="@+id/container" |
|
|
|
<RelativeLayout android:id="@+id/container" |
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
> |
|
|
|
|
|
|
|
<RelativeLayout |
|
|
|
xmlns:custom="http://schemas.android.com/apk/res-auto"> |
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/wheelsWrapper" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_centerHorizontal="true" |
|
|
|
android:foregroundGravity="center" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:orientation="horizontal" |
|
|
|
> |
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/year" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="false" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="false" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp" |
|
|
|
/> |
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/month" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="true" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="true" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp" |
|
|
|
/> |
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/date" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="true" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="true" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp" |
|
|
|
/> |
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/day" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="false" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
/> |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="4" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="false" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp"/> |
|
|
|
|
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/hour" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
android:layout_toEndOf="@+id/day" |
|
|
|
android:layout_toRightOf="@+id/day" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="true" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="true" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp" |
|
|
|
/> |
|
|
|
|
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/minutes" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
android:layout_toEndOf="@+id/hour" |
|
|
|
android:layout_toRightOf="@+id/hour" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="true" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="true" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp" |
|
|
|
/> |
|
|
|
|
|
|
|
<cn.carbswang.android.numberpickerview.library.NumberPickerView |
|
|
|
android:id="@+id/ampm" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
android:layout_toEndOf="@+id/minutes" |
|
|
|
android:layout_toRightOf="@+id/minutes" |
|
|
|
app:npv_DividerColor="#cccccc" |
|
|
|
app:npv_RespondChangeOnDetached="false" |
|
|
|
app:npv_ShownCount="5" |
|
|
|
app:npv_TextColorNormal="#aaaaaa" |
|
|
|
app:npv_TextColorSelected="#000000" |
|
|
|
app:npv_TextSizeNormal="18sp" |
|
|
|
app:npv_TextSizeSelected="21sp" |
|
|
|
app:npv_WrapSelectorWheel="true" |
|
|
|
app:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:layout_weight="1.5" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
custom:npv_DividerColor="#cccccc" |
|
|
|
custom:npv_RespondChangeOnDetached="false" |
|
|
|
custom:npv_ShownCount="5" |
|
|
|
custom:npv_TextColorNormal="#aaaaaa" |
|
|
|
custom:npv_TextColorSelected="#000000" |
|
|
|
custom:npv_TextSizeNormal="18sp" |
|
|
|
custom:npv_TextSizeSelected="21sp" |
|
|
|
custom:npv_WrapSelectorWheel="true" |
|
|
|
custom:npv_ItemPaddingHorizontal="3dp" |
|
|
|
android:foregroundGravity="center" |
|
|
|
|
|
|
|
/> |
|
|
|
</RelativeLayout> |
|
|
|
|
|
|
|
<ImageView |
|
|
|
android:id="@+id/overlay_top" |
|
|
|
android:src="@drawable/overlay" |
|
|
|
</LinearLayout> |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:contentDescription="@string/overlay" |
|
|
|
android:layout_height="20dp" |
|
|
|
android:rotation="180" |
|
|
|
/> |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:orientation="vertical" |
|
|
|
android:layout_marginBottom="-1dp" |
|
|
|
> |
|
|
|
<ImageView |
|
|
|
android:id="@+id/overlay_top" |
|
|
|
android:src="@drawable/overlay" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:contentDescription="@string/overlay" |
|
|
|
android:layout_height="0dp" |
|
|
|
android:rotation="180" |
|
|
|
android:layout_weight=".15" |
|
|
|
/> |
|
|
|
|
|
|
|
<ImageView |
|
|
|
android:id="@+id/overlay_bottom" |
|
|
|
android:src="@drawable/overlay" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:contentDescription="@string/overlay" |
|
|
|
android:layout_height="20dp" |
|
|
|
android:layout_marginTop="140dp" |
|
|
|
/> |
|
|
|
<View |
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_weight=".70" |
|
|
|
android:layout_width="match_parent" |
|
|
|
/> |
|
|
|
|
|
|
|
<ImageView |
|
|
|
android:id="@+id/overlay_bottom" |
|
|
|
android:src="@drawable/overlay" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:contentDescription="@string/overlay" |
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_weight=".15" |
|
|
|
/> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
</RelativeLayout> |