diff options
Diffstat (limited to 'res')
30 files changed, 782 insertions, 0 deletions
diff --git a/res/anim/dialpad_slide_in_bottom.xml b/res/anim/dialpad_slide_in_bottom.xml new file mode 100644 index 0000000..07748b5 --- /dev/null +++ b/res/anim/dialpad_slide_in_bottom.xml @@ -0,0 +1,20 @@ +<?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. +--> +<translate xmlns:android="http://schemas.android.com/apk/res/android" + android:interpolator="@android:interpolator/fast_out_slow_in" + android:duration="@integer/dialpad_slide_in_duration" + android:fromYDelta="67%p" + android:toYDelta="0" /> diff --git a/res/anim/dialpad_slide_in_right.xml b/res/anim/dialpad_slide_in_right.xml new file mode 100644 index 0000000..d87e82a --- /dev/null +++ b/res/anim/dialpad_slide_in_right.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2014, 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. +--> + +<translate xmlns:android="http://schemas.android.com/apk/res/android" + android:fromXDelta="100%p" + android:toXDelta="0" + android:interpolator="@android:anim/decelerate_interpolator" + android:duration="@integer/dialpad_slide_in_duration"/> diff --git a/res/anim/dialpad_slide_out_bottom.xml b/res/anim/dialpad_slide_out_bottom.xml new file mode 100644 index 0000000..c80c8ed --- /dev/null +++ b/res/anim/dialpad_slide_out_bottom.xml @@ -0,0 +1,20 @@ +<?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. +--> +<translate xmlns:android="http://schemas.android.com/apk/res/android" + android:interpolator="@android:interpolator/fast_out_linear_in" + android:duration="@integer/dialpad_slide_out_duration" + android:fromYDelta="0" + android:toYDelta="80%p" /> diff --git a/res/anim/dialpad_slide_out_right.xml b/res/anim/dialpad_slide_out_right.xml new file mode 100644 index 0000000..a29c1a0 --- /dev/null +++ b/res/anim/dialpad_slide_out_right.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2014, 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. +--> + +<translate xmlns:android="http://schemas.android.com/apk/res/android" + android:fromXDelta="0" + android:toXDelta="100%" + android:interpolator="@android:anim/decelerate_interpolator" + android:duration="@integer/dialpad_slide_out_duration"/> diff --git a/res/drawable-hdpi/ic_dialpad_delete.png b/res/drawable-hdpi/ic_dialpad_delete.png Binary files differnew file mode 100644 index 0000000..e588d90 --- /dev/null +++ b/res/drawable-hdpi/ic_dialpad_delete.png diff --git a/res/drawable-hdpi/ic_dialpad_vm.png b/res/drawable-hdpi/ic_dialpad_vm.png Binary files differnew file mode 100644 index 0000000..9501300 --- /dev/null +++ b/res/drawable-hdpi/ic_dialpad_vm.png diff --git a/res/drawable-hdpi/ic_overflow_menu.png b/res/drawable-hdpi/ic_overflow_menu.png Binary files differnew file mode 100644 index 0000000..262e9df --- /dev/null +++ b/res/drawable-hdpi/ic_overflow_menu.png diff --git a/res/drawable-mdpi/ic_dialpad_delete.png b/res/drawable-mdpi/ic_dialpad_delete.png Binary files differnew file mode 100644 index 0000000..64a52d0 --- /dev/null +++ b/res/drawable-mdpi/ic_dialpad_delete.png diff --git a/res/drawable-mdpi/ic_dialpad_vm.png b/res/drawable-mdpi/ic_dialpad_vm.png Binary files differnew file mode 100644 index 0000000..f32d8bf --- /dev/null +++ b/res/drawable-mdpi/ic_dialpad_vm.png diff --git a/res/drawable-mdpi/ic_overflow_menu.png b/res/drawable-mdpi/ic_overflow_menu.png Binary files differnew file mode 100644 index 0000000..0e720dd --- /dev/null +++ b/res/drawable-mdpi/ic_overflow_menu.png diff --git a/res/drawable-xhdpi/ic_dialpad_delete.png b/res/drawable-xhdpi/ic_dialpad_delete.png Binary files differnew file mode 100644 index 0000000..87bc113 --- /dev/null +++ b/res/drawable-xhdpi/ic_dialpad_delete.png diff --git a/res/drawable-xhdpi/ic_dialpad_vm.png b/res/drawable-xhdpi/ic_dialpad_vm.png Binary files differnew file mode 100644 index 0000000..5d87c50 --- /dev/null +++ b/res/drawable-xhdpi/ic_dialpad_vm.png diff --git a/res/drawable-xhdpi/ic_overflow_menu.png b/res/drawable-xhdpi/ic_overflow_menu.png Binary files differnew file mode 100644 index 0000000..9156076 --- /dev/null +++ b/res/drawable-xhdpi/ic_overflow_menu.png diff --git a/res/drawable-xxhdpi/ic_dialpad_delete.png b/res/drawable-xxhdpi/ic_dialpad_delete.png Binary files differnew file mode 100644 index 0000000..186508a --- /dev/null +++ b/res/drawable-xxhdpi/ic_dialpad_delete.png diff --git a/res/drawable-xxhdpi/ic_dialpad_vm.png b/res/drawable-xxhdpi/ic_dialpad_vm.png Binary files differnew file mode 100644 index 0000000..ac20fab --- /dev/null +++ b/res/drawable-xxhdpi/ic_dialpad_vm.png diff --git a/res/drawable-xxhdpi/ic_overflow_menu.png b/res/drawable-xxhdpi/ic_overflow_menu.png Binary files differnew file mode 100644 index 0000000..92526f5 --- /dev/null +++ b/res/drawable-xxhdpi/ic_overflow_menu.png diff --git a/res/drawable/btn_dialpad_key.xml b/res/drawable/btn_dialpad_key.xml new file mode 100644 index 0000000..a4cb088 --- /dev/null +++ b/res/drawable/btn_dialpad_key.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> + +<ripple xmlns:android="http://schemas.android.com/apk/res/android" + android:color="?android:attr/colorControlHighlight" />
\ No newline at end of file diff --git a/res/layout-land/dialpad_key.xml b/res/layout-land/dialpad_key.xml new file mode 100644 index 0000000..29e6bf1 --- /dev/null +++ b/res/layout-land/dialpad_key.xml @@ -0,0 +1,43 @@ +<?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. +--> + +<!-- A layout representing a single key in the dialpad --> +<com.android.phone.common.dialpad.DialpadKeyButton + xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/DialpadKeyButtonStyle" > + + <LinearLayout style="@style/DialpadKeyInternalLayoutStyle" + android:orientation="horizontal" + android:baselineAligned="false" + android:layout_gravity="right|center_vertical" > + + <!-- Note in the referenced styles that we assign hard widths to these components + because we want them to line up vertically when we arrange them in an MxN grid --> + + <com.android.phone.common.dialpad.DialpadTextView + android:id="@+id/dialpad_key_number" + style="@style/DialpadKeyNumberStyle" + android:layout_gravity="right" + android:layout_marginBottom="0dp" + android:layout_marginRight="@dimen/dialpad_key_margin_right" /> + + <TextView + android:id="@+id/dialpad_key_letters" + style="@style/DialpadKeyLettersStyle" + android:layout_width="@dimen/dialpad_key_text_width" + android:layout_gravity="right|bottom" /> + </LinearLayout> +</com.android.phone.common.dialpad.DialpadKeyButton> diff --git a/res/layout-land/dialpad_key_one.xml b/res/layout-land/dialpad_key_one.xml new file mode 100644 index 0000000..2890fd1 --- /dev/null +++ b/res/layout-land/dialpad_key_one.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> +<com.android.phone.common.dialpad.DialpadKeyButton + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/one" + style="@style/DialpadKeyButtonStyle"> + <LinearLayout + style="@style/DialpadKeyInternalLayoutStyle" + android:orientation="horizontal" + android:baselineAligned="false" + android:layout_gravity="right|center_vertical" > + <com.android.phone.common.dialpad.DialpadTextView + android:id="@+id/dialpad_key_number" + style="@style/DialpadKeyNumberStyle" + android:layout_gravity="right" + android:layout_marginBottom="0dp" + android:layout_marginRight="@dimen/dialpad_key_margin_right" /> + <RelativeLayout + android:layout_width="@dimen/dialpad_key_text_width" + android:layout_height="wrap_content" + android:layout_gravity="right|bottom" > + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="@dimen/dialpad_voicemail_icon_padding_top" + android:id="@+id/dialpad_key_voicemail" + android:src="@drawable/ic_dialpad_vm" + android:scaleType="fitCenter" + android:layout_centerInParent="true" + android:tint="@color/dialpad_secondary_text_color" /> + <!-- Place empty text view so vertical height is same as other dialpad keys. --> + <TextView style="@style/DialpadKeyLettersStyle" /> + </RelativeLayout> + </LinearLayout> +</com.android.phone.common.dialpad.DialpadKeyButton> diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml new file mode 100644 index 0000000..1fc1f6c --- /dev/null +++ b/res/layout/dialpad.xml @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> + +<!-- Dialpad in the Phone app. --> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/dialpad" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:clipChildren="false"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="horizontal"> + <Space style="@style/DialpadSpaceStyle" /> + <include layout="@layout/dialpad_key_one" /> + <include layout="@layout/dialpad_key" + android:id="@+id/two" + style="@style/DialpadKeyButtonStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/three" + style="@style/DialpadKeyButtonStyle" /> + <Space style="@style/DialpadSpaceStyle" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="horizontal"> + <Space style="@style/DialpadSpaceStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/four" + style="@style/DialpadKeyButtonStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/five" + style="@style/DialpadKeyButtonStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/six" + style="@style/DialpadKeyButtonStyle" /> + <Space style="@style/DialpadSpaceStyle" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="horizontal"> + <Space style="@style/DialpadSpaceStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/seven" + style="@style/DialpadKeyButtonStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/eight" + style="@style/DialpadKeyButtonStyle" /> + <include layout="@layout/dialpad_key" + android:id="@+id/nine" + style="@style/DialpadKeyButtonStyle" /> + <Space style="@style/DialpadSpaceStyle" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="horizontal"> + <Space style="@style/DialpadSpaceStyle" /> + <com.android.phone.common.dialpad.DialpadKeyButton + android:id="@+id/star" + style="@style/DialpadKeyButtonStyle"> + <LinearLayout + style="@style/DialpadKeyInternalLayoutStyle"> + <com.android.phone.common.dialpad.DialpadTextView + android:id="@+id/dialpad_key_number" + style="@style/DialpadKeyStarStyle" /> + </LinearLayout> + </com.android.phone.common.dialpad.DialpadKeyButton> + <include layout="@layout/dialpad_key" + android:id="@+id/zero" + style="@style/DialpadKeyButtonStyle" /> + <com.android.phone.common.dialpad.DialpadKeyButton + android:id="@+id/pound" + style="@style/DialpadKeyButtonStyle"> + <LinearLayout + style="@style/DialpadKeyInternalLayoutStyle"> + <com.android.phone.common.dialpad.DialpadTextView + android:id="@id/dialpad_key_number" + style="@style/DialpadKeyPoundStyle" /> + </LinearLayout> + </com.android.phone.common.dialpad.DialpadKeyButton> + <Space style="@style/DialpadSpaceStyle" /> + </LinearLayout> + <Space + android:layout_width="match_parent" + android:layout_height="@dimen/dialpad_bottom_key_height" /> +</LinearLayout> diff --git a/res/layout/dialpad_key.xml b/res/layout/dialpad_key.xml new file mode 100644 index 0000000..d5f47a4 --- /dev/null +++ b/res/layout/dialpad_key.xml @@ -0,0 +1,35 @@ +<?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. +--> + +<!-- A layout representing a single key in the dialpad --> +<com.android.phone.common.dialpad.DialpadKeyButton + xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/DialpadKeyButtonStyle" > + + <LinearLayout style="@style/DialpadKeyInternalLayoutStyle"> + + <!-- Note in the referenced styles that we assign hard widths to these components + because we want them to line up vertically when we arrange them in an MxN grid --> + + <com.android.phone.common.dialpad.DialpadTextView + android:id="@+id/dialpad_key_number" + style="@style/DialpadKeyNumberStyle" /> + + <TextView + android:id="@+id/dialpad_key_letters" + style="@style/DialpadKeyLettersStyle" /> + </LinearLayout> +</com.android.phone.common.dialpad.DialpadKeyButton> diff --git a/res/layout/dialpad_key_one.xml b/res/layout/dialpad_key_one.xml new file mode 100644 index 0000000..dfb444a --- /dev/null +++ b/res/layout/dialpad_key_one.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> +<com.android.phone.common.dialpad.DialpadKeyButton + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/one" + style="@style/DialpadKeyButtonStyle"> + <LinearLayout + style="@style/DialpadKeyInternalLayoutStyle"> + <com.android.phone.common.dialpad.DialpadTextView + android:id="@+id/dialpad_key_number" + style="@style/DialpadKeyNumberStyle" /> + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="@dimen/dialpad_voicemail_icon_padding_top" + android:id="@+id/dialpad_key_voicemail" + android:src="@drawable/ic_dialpad_vm" + android:scaleType="fitCenter" + android:layout_centerInParent="true" + android:tint="@color/dialpad_secondary_text_color" /> + <!-- Place empty text view so vertical height is same as other dialpad keys. --> + <TextView style="@style/DialpadKeyLettersStyle" /> + </RelativeLayout> + </LinearLayout> +</com.android.phone.common.dialpad.DialpadKeyButton> diff --git a/res/layout/dialpad_view.xml b/res/layout/dialpad_view.xml new file mode 100644 index 0000000..68de527 --- /dev/null +++ b/res/layout/dialpad_view.xml @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> +<view class="com.android.phone.common.dialpad.DialpadView" + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/dialpad_view" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:layout_gravity="bottom" + android:orientation="vertical" + android:layoutDirection="ltr" + android:background="@color/background_dialpad" + android:clickable="true" > + + <!-- Text field and possibly soft menu button above the keypad where + the digits are displayed. --> + <LinearLayout + android:id="@+id/digits_container" + android:layout_width="match_parent" + android:layout_height="@dimen/dialpad_digits_height" + android:orientation="horizontal"> + + <ImageButton android:id="@+id/dialpad_overflow" + android:background="@drawable/btn_dialpad_key" + android:src="@drawable/ic_overflow_menu" + android:tint="@color/dialpad_icon_tint" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingLeft="@dimen/dialpad_digits_padding" + android:paddingRight="@dimen/dialpad_digits_menu_right_padding" + android:contentDescription="@string/description_dialpad_overflow" + android:gravity="center" + android:visibility="gone" /> + + <view class="com.android.phone.common.dialpad.DigitsEditText" + android:id="@+id/digits" + android:layout_width="0dp" + android:layout_height="match_parent" + android:scrollHorizontally="true" + android:singleLine="true" + android:layout_weight="1" + android:gravity="center" + android:background="@android:color/transparent" + android:maxLines="1" + android:textSize="@dimen/dialpad_digits_text_size" + android:freezesText="true" + android:focusableInTouchMode="true" + android:cursorVisible="false" + android:textColor="@color/dialpad_digits_text_color" + android:textCursorDrawable="@null" + android:fontFamily="sans-serif-light" + android:textStyle="normal" /> + + <ImageButton + android:id="@+id/deleteButton" + android:background="@drawable/btn_dialpad_key" + android:tint="@color/dialpad_icon_tint" + android:paddingLeft="@dimen/dialpad_digits_padding" + android:paddingRight="@dimen/dialpad_digits_padding" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:state_enabled="false" + android:contentDescription="@string/description_delete_button" + android:src="@drawable/ic_dialpad_delete" /> + </LinearLayout> + + <View + android:layout_width="match_parent" + android:layout_height="1dp" + android:background="#e3e3e3" /> + + <Space + android:layout_width="match_parent" + android:layout_height="14dp" /> + + <include layout="@layout/dialpad" /> + + <Space + android:layout_width="match_parent" + android:layout_height="8dp" /> + +</view> diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml new file mode 100644 index 0000000..96547f0 --- /dev/null +++ b/res/values-land/dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2014 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> + <dimen name="dialpad_key_margin_right">10dp</dimen> + <dimen name="dialpad_key_text_width">25dp</dimen> +</resources> diff --git a/res/values/animation_constants.xml b/res/values/animation_constants.xml new file mode 100644 index 0000000..f8523e3 --- /dev/null +++ b/res/values/animation_constants.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2014 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> + <integer name="floating_action_button_animation_duration">250</integer> + <integer name="dialpad_slide_in_duration">532</integer> + <integer name="dialpad_slide_out_duration">257</integer> +</resources> diff --git a/res/values/attrs.xml b/res/values/attrs.xml new file mode 100644 index 0000000..09620a8 --- /dev/null +++ b/res/values/attrs.xml @@ -0,0 +1,21 @@ +<!-- + ~ Copyright (C) 2012 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> + <declare-styleable name="Dialpad"> + <attr name="dialpad_key_button_touch_tint" format="color"/> + </declare-styleable> +</resources> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..d38428c --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,26 @@ +<!-- + ~ Copyright (C) 2012 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> + <!-- Colors for the dialpad --> + <color name="background_dialpad">#fcfcfc</color> + <color name="background_dialpad_pressed">#ececec</color> + <color name="dialpad_primary_text_color">#26c6da</color> + <color name="dialpad_secondary_text_color">#999999</color> + <color name="dialpad_digits_text_color">#666666</color> + <color name="dialpad_separator_line_color">#dadada</color> + <color name="dialpad_icon_tint">#b3b3b3</color> +</resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 0000000..d681d9d --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,55 @@ +<!-- + ~ Copyright (C) 2012 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> + <!-- Text dimensions for dialpad keys --> + <dimen name="dialpad_key_numbers_size">36sp</dimen> + <dimen name="dialpad_key_letters_size">8sp</dimen> + <dimen name="dialpad_key_pound_size">23sp</dimen> + <dimen name="dialpad_key_star_size">28sp</dimen> + <dimen name="dialpad_key_height">64dp</dimen> + <dimen name="dialpad_key_number_margin_bottom">2dp</dimen> + <dimen name="dialpad_symbol_margin_bottom">13dp</dimen> + <!-- The bottom row of the dialpad is slightly taller to account for the dial button --> + <dimen name="dialpad_bottom_key_height">65dp</dimen> + <dimen name="dialpad_key_plus_size">18sp</dimen> + <dimen name="dialpad_horizontal_padding">5dp</dimen> + <dimen name="dialpad_digits_text_size">36dp</dimen> + <dimen name="dialpad_digits_height">64dp</dimen> + <dimen name="dialpad_digits_padding">16dp</dimen> + <dimen name="dialpad_digits_menu_right_padding">10dp</dimen> + <dimen name="dialpad_center_margin">3dp</dimen> + <dimen name="dialpad_button_margin">2dp</dimen> + <dimen name="dialpad_voicemail_icon_padding_top">2dp</dimen> + <dimen name="dialpad_key_button_translate_y">100dp</dimen> + <!-- Height of the floating action button --> + <dimen name="floating_action_button_height">56dp</dimen> + <!-- Width of the floating action button --> + <dimen name="floating_action_button_width">56dp</dimen> + <!-- Corner radius of the floating action button --> + <dimen name="floating_action_button_radius">28dp</dimen> + <!-- Z translation of the floating action button --> + <dimen name="floating_action_button_translation_z">3dp</dimen> + <!-- Padding to be applied to the bottom of lists to make space for the floating action + button --> + <dimen name="floating_action_button_list_bottom_padding">88dp</dimen> + <!-- Right margin of the floating action button --> + <dimen name="floating_action_button_margin_right">16dp</dimen> + <!-- Bottom margin of the floating action button --> + <dimen name="floating_action_button_margin_bottom">16dp</dimen> + <!-- Offset of bottom margin of the floating action button used when dialpad is up --> + <dimen name="floating_action_button_dialpad_margin_bottom_offset">4dp</dimen> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..bfa63a9 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2012 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"> + <!-- The digit to be displayed on the 0 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_0_number">0</string> + <!-- The digit to be displayed on the 1 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_1_number">1</string> + <!-- The digit to be displayed on the 2 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_2_number">2</string> + <!-- The digit to be displayed on the 3 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_3_number">3</string> + <!-- The digit to be displayed on the 4 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_4_number">4</string> + <!-- The digit to be displayed on the 5 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_5_number">5</string> + <!-- The digit to be displayed on the 6 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_6_number">6</string> + <!-- The digit to be displayed on the 7 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_7_number">7</string> + <!-- The digit to be displayed on the 8 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_8_number">8</string> + <!-- The digit to be displayed on the 9 key of the dialpad [CHAR LIMIT=1]--> + <string name="dialpad_9_number">9</string> + <!-- Do not translate. --> + <string name="dialpad_star_number">*</string> + <!-- Do not translate. --> + <string name="dialpad_pound_number">#</string> + + <!-- Do not translate. --> + <string name="dialpad_0_letters">+</string> + <!-- Do not translate. --> + <string name="dialpad_1_letters"></string> + <!-- Do not translate. --> + <string name="dialpad_2_letters">ABC</string> + <!-- Do not translate. --> + <string name="dialpad_3_letters">DEF</string> + <!-- Do not translate. --> + <string name="dialpad_4_letters">GHI</string> + <!-- Do not translate. --> + <string name="dialpad_5_letters">JKL</string> + <!-- Do not translate. --> + <string name="dialpad_6_letters">MNO</string> + <!-- Do not translate. --> + <string name="dialpad_7_letters">PQRS</string> + <!-- Do not translate. --> + <string name="dialpad_8_letters">TUV</string> + <!-- Do not translate. --> + <string name="dialpad_9_letters">WXYZ</string> + <!-- Do not translate. --> + <string name="dialpad_star_letters"></string> + <!-- Do not translate. --> + <string name="dialpad_pound_letters"></string> + + <!-- String describing the overflow menu button in the dialpad. --> + <string name="description_dialpad_overflow">More options</string> + + <!-- String describing the Delete/Backspace ImageButton. + Used by AccessibilityService to announce the purpose of the button. + --> + <string name="description_delete_button">backspace</string> + + <!-- String describing the button used to add a plus (+) symbol to the dialpad --> + <string name="description_image_button_plus">plus</string> + + <!-- String describing the Voicemail ImageButton. + Used by AccessibilityService to announce the purpose of the button. + --> + <string name="description_voicemail_button">voicemail</string> + +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..5297aa1 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,83 @@ +<!-- + ~ Copyright (C) 2012 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> + <style name="DialpadSpaceStyle"> + <item name="android:layout_width">0dp</item> + <item name="android:layout_height">match_parent</item> + <item name="android:layout_weight">3</item> + </style> + + <style name="DialpadKeyNumberStyle"> + <item name="android:textColor">@color/dialpad_primary_text_color</item> + <item name="android:textSize">@dimen/dialpad_key_numbers_size</item> + <item name="android:fontFamily">sans-serif-light</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_marginBottom">@dimen/dialpad_key_number_margin_bottom</item> + <item name="android:gravity">center</item> + </style> + + <style name="DialpadKeyStarStyle"> + <item name="android:textColor">@color/dialpad_secondary_text_color</item> + <item name="android:textSize">@dimen/dialpad_key_star_size</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_marginBottom">@dimen/dialpad_symbol_margin_bottom</item> + <item name="android:gravity">center</item> + </style> + + <style name="DialpadKeyPoundStyle"> + <item name="android:textColor">@color/dialpad_secondary_text_color</item> + <item name="android:textSize">@dimen/dialpad_key_pound_size</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_marginBottom">@dimen/dialpad_symbol_margin_bottom</item> + <item name="android:gravity">center</item> + </style> + + <style name="DialpadKeyLettersStyle"> + <item name="android:textColor">@color/dialpad_secondary_text_color</item> + <item name="android:textSize">@dimen/dialpad_key_letters_size</item> + <item name="android:fontFamily">sans-serif-medium</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:gravity">center_horizontal</item> + </style> + + <style name="DialpadKeyButtonStyle"> + <item name="android:soundEffectsEnabled">false</item> + <item name="android:clickable">true</item> + <item name="android:layout_width">0dp</item> + <item name="android:layout_height">match_parent</item> + <item name="android:layout_weight">13</item> + <item name="android:minHeight">@dimen/dialpad_key_height</item> + <item name="android:background">@drawable/btn_dialpad_key</item> + <item name="android:focusable">true</item> + </style> + + <style name="DialpadBottomKeyButtonStyle" parent="DialpadKeyButtonStyle"> + <item name="android:layout_height">@dimen/dialpad_bottom_key_height</item> + </style> + + <style name="DialpadKeyInternalLayoutStyle"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_gravity">center</item> + <item name="android:gravity">center</item> + <item name="android:orientation">vertical</item> + </style> +</resources> |