proton-mail-android/app/src/main/res/layout/layout_onboarding_to_new_br...

134 lines
5.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2022 Proton AG
~
~ This file is part of Proton Mail.
~
~ Proton Mail is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Proton Mail is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Proton Mail. If not, see https://www.gnu.org/licenses/.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
app:srcCompat="@drawable/welcome_header" />
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:background="@drawable/ic_logo_background_shape"
android:backgroundTint="@color/white"
android:contentDescription="@string/app_name"
android:elevation="24dp"
android:outlineProvider="background"
app:srcCompat="@drawable/ic_logo_mail" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/proton_background_norm"
android:orientation="vertical">
<TextView
style="@style/Proton.Text.Headline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:text="@string/existing_user_onboarding_updated_proton_headline" />
<TextView
android:id="@+id/onboardingDescriptionTextView"
style="@style/Proton.Text.DefaultSmall.Weak"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="24dp"
android:text="@string/existing_user_onboarding_updated_proton_description" />
<me.proton.core.presentation.ui.view.ProtonButton
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:text="@string/onboarding_got_it" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="false"
android:clipToPadding="false"
android:gravity="center_horizontal"
android:orientation="horizontal"
android:paddingTop="24dp"
android:paddingBottom="24dp">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginHorizontal="8dp"
android:background="@drawable/ic_logo_background_shape"
android:elevation="4dp"
app:srcCompat="@drawable/ic_logo_mail" />
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginHorizontal="8dp"
android:background="@drawable/ic_logo_background_shape"
android:elevation="4dp"
app:srcCompat="@drawable/ic_logo_calendar" />
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginHorizontal="8dp"
android:background="@drawable/ic_logo_background_shape"
android:elevation="4dp"
app:srcCompat="@drawable/ic_logo_drive" />
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginHorizontal="8dp"
android:background="@drawable/ic_logo_background_shape"
android:elevation="4dp"
app:srcCompat="@drawable/ic_logo_vpn" />
</LinearLayout>
</LinearLayout>
</LinearLayout>