diff options
author | Sam Blitzstein <sblitz@google.com> | 2013-02-15 16:46:06 -0800 |
---|---|---|
committer | Sam Blitzstein <sblitz@google.com> | 2013-03-20 10:21:01 -0700 |
commit | 6e896f805cac499b777c98755149f07ccd7ba5c3 (patch) | |
tree | 1a5467332ae3039da901983fdf46725211417229 /res | |
parent | ebd2a4069dda00781262a1cbfd4a9d22fce15ed7 (diff) | |
download | datetimepicker-6e896f805cac499b777c98755149f07ccd7ba5c3.tar.gz |
Adding new timepicker library.
Timepicker is a radial, animated selector.
Change-Id: Ib6a6deebf7673dcb14561261314a0e082d4a3ffc
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-land/time_picker_dialog.xml | 112 | ||||
-rw-r--r-- | res/layout-sw600dp/time_picker_dialog.xml | 105 | ||||
-rw-r--r-- | res/layout/time_picker_dialog.xml | 105 | ||||
-rw-r--r-- | res/values-land/dimens.xml | 28 | ||||
-rw-r--r-- | res/values-sw600dp-land/dimens.xml | 31 | ||||
-rw-r--r-- | res/values-sw600dp/dimens.xml | 31 | ||||
-rw-r--r-- | res/values-v11/styles.xml | 11 | ||||
-rw-r--r-- | res/values-v14/styles.xml | 11 | ||||
-rw-r--r-- | res/values-v16/styles.xml | 22 | ||||
-rw-r--r-- | res/values-v17/styles.xml | 22 | ||||
-rw-r--r-- | res/values/arrays.xml | 62 | ||||
-rw-r--r-- | res/values/colors.xml | 24 | ||||
-rw-r--r-- | res/values/dimens.xml | 43 | ||||
-rw-r--r-- | res/values/ids.xml | 19 | ||||
-rw-r--r-- | res/values/strings.xml | 26 | ||||
-rw-r--r-- | res/values/styles.xml | 51 |
16 files changed, 703 insertions, 0 deletions
diff --git a/res/layout-land/time_picker_dialog.xml b/res/layout-land/time_picker_dialog.xml new file mode 100644 index 0000000..7409c6e --- /dev/null +++ b/res/layout-land/time_picker_dialog.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2013 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:background="@color/gray" > + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="vertical"> + <FrameLayout + android:layout_width="@dimen/left_side_width" + android:layout_height="0dip" + android:layout_weight="1" + android:background="@color/white" > + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" > + <View + android:id="@+id/empty_view" + android:layout_width="1dp" + android:layout_height="1dp" + android:background="#00000000" + android:layout_centerInParent="true" /> + <TextView + android:id="@+id/hours" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:textColor="@color/blue" + android:layout_toLeftOf="@+id/separator" + android:layout_centerVertical="true" + style="@style/time_label" /> + <TextView + android:id="@+id/separator" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_separator" + android:paddingLeft="@dimen/separator_padding" + android:paddingRight="@dimen/separator_padding" + android:layout_alignRight="@+id/empty_view" + android:layout_centerVertical="true" + style="@style/time_label" /> + <TextView + android:id="@+id/minutes" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:layout_toRightOf="@+id/separator" + android:layout_centerVertical="true" + style="@style/time_label" /> + <View + android:id="@+id/ampm_hitspace" + android:layout_width="@dimen/ampm_label_size" + android:layout_height="wrap_content" + android:layout_alignTop="@+id/minutes" + android:layout_alignBottom="@+id/minutes" + android:layout_alignLeft="@+id/ampm_label" + android:layout_alignRight="@+id/ampm_label" /> + <TextView + android:id="@+id/ampm_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:paddingLeft="@dimen/ampm_left_padding" + android:paddingRight="@dimen/ampm_left_padding" + android:layout_toRightOf="@+id/minutes" + android:layout_alignBaseline="@+id/minutes" + style="@style/ampm_label" /> + </RelativeLayout> + </FrameLayout> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:background="@color/lighter_gray" /> + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:background="@color/white" > + <Button + android:id="@+id/done_button" + style="?android:attr/buttonBarButtonStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/done_label" /> + </LinearLayout> + </LinearLayout> + <com.android.datetimepicker.TimePicker + android:id="@+id/time_picker" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center" /> +</LinearLayout> diff --git a/res/layout-sw600dp/time_picker_dialog.xml b/res/layout-sw600dp/time_picker_dialog.xml new file mode 100644 index 0000000..ae01ad0 --- /dev/null +++ b/res/layout-sw600dp/time_picker_dialog.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2013 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@color/gray" > + <FrameLayout + android:layout_width="match_parent" + android:layout_height="@dimen/header_height" + android:background="@color/white" > + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" > + <View + android:id="@+id/empty_view" + android:layout_width="1dp" + android:layout_height="1dp" + android:background="#00000000" + android:layout_centerInParent="true" /> + <TextView + android:id="@+id/hours" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:textColor="@color/blue" + android:layout_toLeftOf="@+id/separator" + android:layout_centerVertical="true" + style="@style/time_label" /> + <TextView + android:id="@+id/separator" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_separator" + android:paddingLeft="@dimen/separator_padding" + android:paddingRight="@dimen/separator_padding" + android:layout_alignRight="@+id/empty_view" + android:layout_centerVertical="true" + style="@style/time_label" /> + <TextView + android:id="@+id/minutes" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:layout_toRightOf="@+id/separator" + android:layout_centerVertical="true" + style="@style/time_label" /> + <View + android:id="@+id/ampm_hitspace" + android:layout_width="@dimen/ampm_label_size" + android:layout_height="wrap_content" + android:layout_alignTop="@+id/minutes" + android:layout_alignBottom="@+id/minutes" + android:layout_alignLeft="@+id/ampm_label" + android:layout_alignRight="@+id/ampm_label" /> + <TextView + android:id="@+id/ampm_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:paddingLeft="@dimen/ampm_left_padding" + android:paddingRight="@dimen/ampm_left_padding" + android:layout_toRightOf="@+id/minutes" + android:layout_alignBaseline="@+id/minutes" + style="@style/ampm_label" /> + </RelativeLayout> + </FrameLayout> + <com.android.datetimepicker.TimePicker + android:id="@+id/time_picker" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:gravity="center" /> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:background="@color/lighter_gray" /> + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + <Button + android:id="@+id/done_button" + style="?android:attr/buttonBarButtonStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/done_label" /> + </LinearLayout> +</LinearLayout> diff --git a/res/layout/time_picker_dialog.xml b/res/layout/time_picker_dialog.xml new file mode 100644 index 0000000..ae01ad0 --- /dev/null +++ b/res/layout/time_picker_dialog.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2013 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@color/gray" > + <FrameLayout + android:layout_width="match_parent" + android:layout_height="@dimen/header_height" + android:background="@color/white" > + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" > + <View + android:id="@+id/empty_view" + android:layout_width="1dp" + android:layout_height="1dp" + android:background="#00000000" + android:layout_centerInParent="true" /> + <TextView + android:id="@+id/hours" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:textColor="@color/blue" + android:layout_toLeftOf="@+id/separator" + android:layout_centerVertical="true" + style="@style/time_label" /> + <TextView + android:id="@+id/separator" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_separator" + android:paddingLeft="@dimen/separator_padding" + android:paddingRight="@dimen/separator_padding" + android:layout_alignRight="@+id/empty_view" + android:layout_centerVertical="true" + style="@style/time_label" /> + <TextView + android:id="@+id/minutes" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:layout_toRightOf="@+id/separator" + android:layout_centerVertical="true" + style="@style/time_label" /> + <View + android:id="@+id/ampm_hitspace" + android:layout_width="@dimen/ampm_label_size" + android:layout_height="wrap_content" + android:layout_alignTop="@+id/minutes" + android:layout_alignBottom="@+id/minutes" + android:layout_alignLeft="@+id/ampm_label" + android:layout_alignRight="@+id/ampm_label" /> + <TextView + android:id="@+id/ampm_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/time_placeholder" + android:paddingLeft="@dimen/ampm_left_padding" + android:paddingRight="@dimen/ampm_left_padding" + android:layout_toRightOf="@+id/minutes" + android:layout_alignBaseline="@+id/minutes" + style="@style/ampm_label" /> + </RelativeLayout> + </FrameLayout> + <com.android.datetimepicker.TimePicker + android:id="@+id/time_picker" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:gravity="center" /> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:background="@color/lighter_gray" /> + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + <Button + android:id="@+id/done_button" + style="?android:attr/buttonBarButtonStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/done_label" /> + </LinearLayout> +</LinearLayout> diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml new file mode 100644 index 0000000..dca1757 --- /dev/null +++ b/res/values-land/dimens.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2013, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<resources + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" + xmlns:android="http://schemas.android.com/apk/res/android" > + <dimen name="time_label_right_padding">10sp</dimen> + <dimen name="time_label_size">40sp</dimen> + <dimen name="ampm_label_size">14sp</dimen> + <dimen name="header_height">64dip</dimen> + <dimen name="footer_height">48dip</dimen> +</resources>
\ No newline at end of file diff --git a/res/values-sw600dp-land/dimens.xml b/res/values-sw600dp-land/dimens.xml new file mode 100644 index 0000000..70c7b73 --- /dev/null +++ b/res/values-sw600dp-land/dimens.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2013, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<resources + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" + xmlns:android="http://schemas.android.com/apk/res/android" > + <dimen name="time_label_right_padding">16sp</dimen> + <dimen name="time_label_size">64sp</dimen> + <dimen name="ampm_label_size">21sp</dimen> + <dimen name="done_label_size">14sp</dimen> + <dimen name="ampm_left_padding">7dip</dimen> + <dimen name="separator_padding">5dip</dimen> + <dimen name="header_height">96dip</dimen> + <dimen name="footer_height">48dip</dimen> +</resources>
\ No newline at end of file diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000..7efc81d --- /dev/null +++ b/res/values-sw600dp/dimens.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2013, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<resources + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" + xmlns:android="http://schemas.android.com/apk/res/android" > + <dimen name="time_label_right_padding">34sp</dimen> + <dimen name="time_label_size">96sp</dimen> + <dimen name="ampm_label_size">32sp</dimen> + <dimen name="done_label_size">21sp</dimen> + <dimen name="ampm_left_padding">16dip</dimen> + <dimen name="separator_padding">8dip</dimen> + <dimen name="header_height">144dip</dimen> + <dimen name="footer_height">72dip</dimen> +</resources>
\ No newline at end of file diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml new file mode 100644 index 0000000..541752f --- /dev/null +++ b/res/values-v11/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- + Base application theme for API 11+. This theme completely replaces + AppBaseTheme from res/values/styles.xml on API 11+ devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> + <!-- API 11 theme customizations can go here. --> + </style> + +</resources>
\ No newline at end of file diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml new file mode 100644 index 0000000..1ebe523 --- /dev/null +++ b/res/values-v14/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- + Base application theme for API 14+. This theme completely replaces + AppBaseTheme from BOTH res/values/styles.xml and + res/values-v11/styles.xml on API 14+ devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> + <!-- API 14 theme customizations can go here. --> + </style> +</resources>
\ No newline at end of file diff --git a/res/values-v16/styles.xml b/res/values-v16/styles.xml new file mode 100644 index 0000000..beada7b --- /dev/null +++ b/res/values-v16/styles.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- Style for dialog labels. --> + <style name="label"> + <item name="android:fontFamily">sans-serif-light</item> + </style> +</resources>
\ No newline at end of file diff --git a/res/values-v17/styles.xml b/res/values-v17/styles.xml new file mode 100644 index 0000000..4aadec9 --- /dev/null +++ b/res/values-v17/styles.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- Style for dialog labels. --> + <style name="label"> + <item name="android:fontFamily">sans-serif-thin</item> + </style> +</resources>
\ No newline at end of file diff --git a/res/values/arrays.xml b/res/values/arrays.xml new file mode 100644 index 0000000..b18b2a5 --- /dev/null +++ b/res/values/arrays.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string-array name="hours"> + <item>12</item> + <item>1</item> + <item>2</item> + <item>3</item> + <item>4</item> + <item>5</item> + <item>6</item> + <item>7</item> + <item>8</item> + <item>9</item> + <item>10</item> + <item>11</item> + </string-array> + + <string-array name="hours_24"> + <item>00</item> + <item>13</item> + <item>14</item> + <item>15</item> + <item>16</item> + <item>17</item> + <item>18</item> + <item>19</item> + <item>20</item> + <item>21</item> + <item>22</item> + <item>23</item> + </string-array> + + <string-array name="minutes"> + <item>00</item> + <item>05</item> + <item>10</item> + <item>15</item> + <item>20</item> + <item>25</item> + <item>30</item> + <item>35</item> + <item>40</item> + <item>45</item> + <item>50</item> + <item>55</item> + </string-array> +</resources> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..03c35a7 --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources> + <color name="white">#ffffff</color> + <color name="gray">#08000000</color> + <color name="lighter_gray">#15000000</color> + <color name="dark_gray">#70000000</color> + <color name="black">#000000</color> + <color name="blue">#33b5e5</color> +</resources>
\ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 0000000..cd5f2f9 --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2013, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<resources + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" + xmlns:android="http://schemas.android.com/apk/res/android" > + <item name="circle_radius_multiplier" format="float" type="string">0.84</item> + <item name="circle_radius_multiplier_24HourMode" format="float" type="string">0.87</item> + <item name="selection_radius_multiplier" format="float" type="string">0.16</item> + <item name="ampm_circle_radius_multiplier" format="float" type="string">0.175</item> + <item name="numbers_radius_multiplier_normal" format="float" type="string">0.8</item> + <item name="numbers_radius_multiplier_inner" format="float" type="string">0.60</item> + <item name="numbers_radius_multiplier_outer" format="float" type="string">0.83</item> + <item name="text_size_multiplier_normal" format="float" type="string">0.2</item> + <item name="text_size_multiplier_inner" format="float" type="string">0.15</item> + <item name="text_size_multiplier_outer" format="float" type="string">0.11</item> + <dimen name="time_label_right_padding">12sp</dimen> + <dimen name="time_label_size">48sp</dimen> + <dimen name="ampm_label_size">16sp</dimen> + <dimen name="done_label_size">14sp</dimen> + <dimen name="ampm_left_padding">7dip</dimen> + <dimen name="separator_padding">4dip</dimen> + <dimen name="header_height">96dip</dimen> + <dimen name="footer_height">48dip</dimen> + <dimen name="left_side_width">250dip</dimen> + <dimen name="left_side_height">450dip</dimen> +</resources>
\ No newline at end of file diff --git a/res/values/ids.xml b/res/values/ids.xml new file mode 100644 index 0000000..f4374b8 --- /dev/null +++ b/res/values/ids.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources> + <item type="id" name="numbers_key" /> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..9533ea7 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">TimePicker</string> + + <string name="trailing_hour_digit">1</string> + <string name="time_placeholder">--</string> + <string name="time_separator">:</string> + <string name="done_label">Done</string> + <string name="am_label">AM</string> + <string name="pm_label">PM</string> +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..767d8ee --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- + Base application theme, dependent on API level. This theme is replaced + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Light"> + <!-- + Theme customizations available in newer API levels can go in + res/values-vXX/styles.xml, while customizations related to + backward-compatibility can go here. + --> + </style> + + <!-- Application theme. --> + <style name="AppTheme" parent="AppBaseTheme"> + <!-- All customizations that are NOT specific to a particular API-level can go here. --> + </style> + + <!-- Styles for dialog labels. --> + <style name="label" /> + + <style name="time_label" parent="label"> + <item name="android:textSize">@dimen/time_label_size</item> + </style> + + <style name="ampm_label" parent="label"> + <item name="android:textSize">@dimen/ampm_label_size</item> + <item name="android:textAllCaps">true</item> + <item name="android:textColor">@color/black</item> + </style> + + <style name="done_label" parent="label"> + <item name="android:textSize">@dimen/done_label_size</item> + </style> +</resources>
\ No newline at end of file |