diff options
Diffstat (limited to 'java/com/android/dialer/speeddial/res')
4 files changed, 184 insertions, 0 deletions
diff --git a/java/com/android/dialer/speeddial/res/layout/disambig_dialog_layout.xml b/java/com/android/dialer/speeddial/res/layout/disambig_dialog_layout.xml new file mode 100644 index 000000000..356205805 --- /dev/null +++ b/java/com/android/dialer/speeddial/res/layout/disambig_dialog_layout.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/disambig_dialog_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:minHeight="64dp" + android:paddingStart="24dp" + android:paddingEnd="24dp" + android:elevation="1dp" + android:text="@string/speed_dial_disambig_dialog_title" + android:textSize="20sp" + android:textColor="@color/dialer_primary_text_color" + android:fontFamily="sans-serif-medium" + android:background="@android:color/white"/> + + <ScrollView + android:id="@+id/disambig_scrollview" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <LinearLayout + android:id="@+id/communication_avenue_container" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + </ScrollView> + + <FrameLayout + android:id="@+id/remember_this_choice_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:minHeight="56dp" + android:padding="12dp" + android:elevation="4dp" + android:background="@android:color/white"> + + <CheckBox + android:id="@+id/remember_this_choice_checkbox" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/speed_dial_remember_this_choice"/> + </FrameLayout> +</LinearLayout>
\ No newline at end of file diff --git a/java/com/android/dialer/speeddial/res/layout/disambig_option_layout.xml b/java/com/android/dialer/speeddial/res/layout/disambig_option_layout.xml new file mode 100644 index 000000000..097ac4084 --- /dev/null +++ b/java/com/android/dialer/speeddial/res/layout/disambig_option_layout.xml @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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:id="@+id/disambig_option_container" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="56dp" + android:layout_marginBottom="8dp"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="56dp" + android:gravity="center_vertical" + android:paddingStart="24dp" + android:paddingEnd="24dp"> + + <TextView + android:id="@+id/phone_type" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/PrimaryText"/> + + <TextView + android:id="@+id/phone_number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/SecondaryText"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/video_call_container" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="24dp" + android:paddingEnd="24dp" + android:minHeight="56dp" + android:background="?android:attr/selectableItemBackground" + android:visibility="gone" + android:contentDescription="@string/disambig_option_video_call"> + + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_gravity="center_vertical" + android:tint="@color/dialer_secondary_text_color" + android:src="@drawable/quantum_ic_videocam_vd_theme_24"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:layout_gravity="center_vertical" + android:text="@string/disambig_option_video_call" + style="@style/PrimaryText"/> + </LinearLayout> + + <LinearLayout + android:id="@+id/voice_call_container" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="24dp" + android:paddingEnd="24dp" + android:minHeight="56dp" + android:background="?android:attr/selectableItemBackground" + android:contentDescription="@string/disambig_option_voice_call"> + + <ImageView + android:id="@+id/disambig_option_icon" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_gravity="center_vertical" + android:tint="@color/dialer_secondary_text_color" + android:src="@drawable/quantum_ic_phone_vd_theme_24"/> + + <TextView + android:id="@+id/disambig_option_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:layout_gravity="center_vertical" + android:text="@string/disambig_option_voice_call" + style="@style/PrimaryText"/> + </LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/java/com/android/dialer/speeddial/res/values/dimens.xml b/java/com/android/dialer/speeddial/res/values/dimens.xml index 5929df8dd..74b509b73 100644 --- a/java/com/android/dialer/speeddial/res/values/dimens.xml +++ b/java/com/android/dialer/speeddial/res/values/dimens.xml @@ -15,4 +15,5 @@ ~ limitations under the License --> <resources> + <dimen name="scrollview_max_height">280dp</dimen> </resources>
\ No newline at end of file diff --git a/java/com/android/dialer/speeddial/res/values/strings.xml b/java/com/android/dialer/speeddial/res/values/strings.xml index d64d03575..677f772c5 100644 --- a/java/com/android/dialer/speeddial/res/values/strings.xml +++ b/java/com/android/dialer/speeddial/res/values/strings.xml @@ -24,6 +24,20 @@ <!-- text for a button that prompts the user to add a contact to their favorites. [CHAR LIMIT=12] --> <string name="speed_dial_add_button_text">Add</string> + <!-- text for a checkbox in a dialog that prompts the user to select a phone number from a list. + If the user checks this box, we will remember their selection and never ask for it again. [CHAR LIMIT=NONE]--> + <string name="speed_dial_remember_this_choice">Remember this choice</string> + + <!-- Title of a dialog asking the user to choose their favorite mode of communication for a + specific contact where communication modes are video calling and voice calling. [CHAR LIMIT=NONE]--> + <string name="speed_dial_disambig_dialog_title">Choose a Favorite mode</string> + + <!-- Text for a button that places a video call [CHAR LIMIT=15]--> + <string name="disambig_option_video_call">Video call</string> + + <!-- Text for a button that places a phone/voice call [CHAR LIMIT=15]--> + <string name="disambig_option_voice_call">Call</string> + <!-- Title for screen prompting the user to select a contact to mark as a favorite. [CHAR LIMIT=NONE] --> <string name="add_favorite_activity_title">Add Favorite</string> </resources>
\ No newline at end of file |