92 lines
4.0 KiB
XML
92 lines
4.0 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/.
|
|
-->
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:background="@color/background_secondary"
|
|
app:layout_constraintBottom_toTopOf="@id/onboarding_guideline"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/onboarding_image_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/onboarding_image_view_content_description"
|
|
app:layout_constraintBottom_toTopOf="@id/onboarding_guideline"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:src="@drawable/img_onboarding_encryption" />
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/onboarding_guideline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_percent="0.5" />
|
|
|
|
<ch.protonmail.android.onboarding.base.presentation.OnboardingIndicatorsView
|
|
android:id="@+id/onboarding_indicators_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_xl"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/onboarding_guideline" />
|
|
|
|
<TextView
|
|
android:id="@+id/onboarding_headline_text_view"
|
|
style="@style/Proton.Text.Headline"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/margin_xxl"
|
|
android:layout_marginTop="@dimen/margin_xl"
|
|
android:textAlignment="center"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/onboarding_indicators_view"
|
|
tools:text="@string/new_user_onboarding_privacy_for_all_headline" />
|
|
|
|
<TextView
|
|
android:id="@+id/onboarding_description_text_view"
|
|
style="@style/Proton.Text.Default"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/margin_xxl"
|
|
android:layout_marginTop="@dimen/margin_m"
|
|
android:scrollbars="vertical"
|
|
android:textAlignment="center"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/onboarding_headline_text_view"
|
|
app:layout_constraintVertical_bias="0.0"
|
|
tools:text="@string/new_user_onboarding_privacy_for_all_description" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|