diff options
Diffstat (limited to 'java/com/android/dialer/voicemail/listui/res/layout')
-rw-r--r-- | java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml | 23 | ||||
-rw-r--r-- | java/com/android/dialer/voicemail/listui/res/layout/voicemail_tos_fragment.xml | 102 |
2 files changed, 119 insertions, 6 deletions
diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml index f35ce4dc0..c3d885968 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml @@ -15,9 +15,20 @@ ~ limitations under the License --> -<android.support.v7.widget.RecyclerView - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/new_voicemail_call_log_recycler_view" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@color/background_dialer_light"/>
\ No newline at end of file + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:fab="http://schemas.android.com/apk/res-auto" + android:id="@+id/fragment_my_frame_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + <include layout="@layout/voicemail_tos_fragment"/> + + <android.support.v7.widget.RecyclerView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/new_voicemail_call_log_recycler_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/background_dialer_light"/> + +</FrameLayout> diff --git a/java/com/android/dialer/voicemail/listui/res/layout/voicemail_tos_fragment.xml b/java/com/android/dialer/voicemail/listui/res/layout/voicemail_tos_fragment.xml new file mode 100644 index 000000000..dea41e76e --- /dev/null +++ b/java/com/android/dialer/voicemail/listui/res/layout/voicemail_tos_fragment.xml @@ -0,0 +1,102 @@ +<?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:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <ScrollView + android:id="@+id/voicemail_tos_message" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:paddingTop="32dp" + android:orientation="vertical"> + <ImageView + android:id="@+id/voicemail_image" + android:layout_width="@dimen/voicemail_tos_image_size" + android:layout_height="@dimen/voicemail_tos_image_size" + android:layout_gravity="center" + android:paddingBottom="32dp" + android:importantForAccessibility="no"/> + <TextView + android:id="@+id/tos_message_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal|top" + android:minHeight="20dp" + android:text="@string/verizon_terms_and_conditions_title" + style="@style/TosTitleStyle"/> + <TextView + android:id="@+id/tos_message_details" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:text="@string/verizon_terms_and_conditions_1.1_english" + style="@style/TosTextStyle"/> + </LinearLayout> + </ScrollView> + + <View + android:layout_width="match_parent" + android:layout_height="0.5dp" + android:elevation="1dp" + android:background="@drawable/shadow"/> + + <LinearLayout + android:id="@+id/voicemail_tos_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:minHeight="56dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:paddingTop="10dp" + android:paddingBottom="10dp" + android:background="#ffffffff" + android:orientation="horizontal"> + <Button + android:id="@+id/voicemail_tos_button_decline" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/verizon_terms_and_conditions_decline_english" + android:textColor="#757575" + style="@style/TosButtonStyle"/> + + <android.support.v4.widget.Space + android:layout_width="8dp" + android:layout_height="match_parent" + android:layout_weight="1"/> + + + <Button + android:id="@+id/voicemail_tos_button_accept" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/verizon_terms_and_conditions_accept_english" + android:textColor="@color/dialer_theme_color" + style="@style/TosButtonStyle"/> + + </LinearLayout> + +</LinearLayout> |