Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ff54637 authored by uabdullah's avatar uabdullah Committed by Copybara-Service
Browse files

Initial setup of voicemail TOS

This CL only setups the layouts, images and strings associated with the voicemail terms of service. Additional logic of when to display the ToS will be in a follow up CL.

Bug: 71699918
Test: N/A
PiperOrigin-RevId: 181548639
Change-Id: Ia99dcc5ad8a96dcac71946fe611b3ee4ad24814f
parent 56d434be
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<?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.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
  <gradient
        android:startColor="#3333"
        android:endColor="#0333"
        android:type="linear"
        android:angle="90">
    </gradient>
</shape>
+14.4 KiB
Loading image diff...
+17 −6
Original line number Diff line number Diff line
@@ -15,9 +15,20 @@
  ~ limitations under the License
  -->


<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>
+102 −0
Original line number Diff line number Diff line
<?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>
+3 −0
Original line number Diff line number Diff line
@@ -38,4 +38,7 @@
  <dimen name="voicemail_media_player_width">0dp</dimen>

  <dimen name="voicemail_header_margin_start">16dp</dimen>

  <dimen name="voicemail_tos_image_size">280dp</dimen>

</resources>
Loading