2016-08-24 18:51:45 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-09-07 17:50:36 -03:00
|
|
|
<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="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:fillViewport="true">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.util.views.DarkOverflowToolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
2022-06-08 17:00:51 -03:00
|
|
|
android:layout_height="@dimen/signal_m3_toolbar_height"
|
|
|
|
android:minHeight="@dimen/signal_m3_toolbar_height"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:theme="?attr/settingsToolbarStyle"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:navigationContentDescription="@string/DSLSettingsToolbar__navigate_up"
|
2022-06-08 17:00:51 -03:00
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24"
|
|
|
|
app:titleTextAppearance="@style/Signal.Text.TitleLarge"
|
2021-09-07 17:50:36 -03:00
|
|
|
tools:title="@string/AndroidManifest__verify_safety_number" />
|
|
|
|
|
2023-07-19 10:17:45 -04:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/safety_number_image"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/safety_numbers_updating_image"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="16dp"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/safety_number_updating_banner_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/safety_number_image"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/safety_number_image"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/safety_number_image"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="30dp"
|
|
|
|
tools:text="Safety numbers are being updated. Learn more"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1.5dp"
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/safety_number_image"
|
|
|
|
android:background="@color/signal_colorSurfaceVariant"/>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/safety_number_change_banner"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:constraint_referenced_ids="divider,safety_number_updating_banner_text,safety_number_image"/>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/header_barrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="divider,toolbar"/>
|
|
|
|
|
2021-09-07 17:50:36 -03:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/scroll_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:fillViewport="true"
|
2023-07-19 10:17:45 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/header_barrier"
|
2021-09-07 17:50:36 -03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/verify_button_container">
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-08-24 18:51:45 -07:00
|
|
|
android:layout_width="fill_parent"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/signal_background_primary"
|
|
|
|
android:gravity="center_horizontal"
|
2023-07-19 10:17:45 -04:00
|
|
|
android:orientation="vertical">
|
2021-09-07 17:50:36 -03:00
|
|
|
|
2023-07-19 10:17:45 -04:00
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
android:id="@+id/verify_view_pager"
|
|
|
|
android:layout_marginTop="40dp"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:layout_width="match_parent"
|
2023-07-19 10:17:45 -04:00
|
|
|
android:layout_height="wrap_content"/>
|
2021-09-07 17:50:36 -03:00
|
|
|
|
2023-07-19 10:17:45 -04:00
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/dot_indicators"
|
|
|
|
android:layout_width="match_parent"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:layout_height="wrap_content"
|
2023-07-19 10:17:45 -04:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:tabBackground="@drawable/safety_dot_indicator"
|
|
|
|
app:tabGravity="center"
|
|
|
|
app:tabPaddingEnd="10dp"
|
|
|
|
app:tabPaddingStart="10dp"
|
|
|
|
app:tabIndicatorHeight="0dp"/>
|
2021-09-07 17:50:36 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/description"
|
2022-06-08 17:00:51 -03:00
|
|
|
style="@style/Signal.Text.BodyMedium"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-07-19 10:17:45 -04:00
|
|
|
android:layout_marginStart="32dp"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:layout_marginTop="@dimen/verify_identity_vertical_margin"
|
2023-07-19 10:17:45 -04:00
|
|
|
android:layout_marginEnd="32dp"
|
|
|
|
android:layout_marginBottom="20dp"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:gravity="center"
|
|
|
|
android:lineSpacingExtra="3sp"
|
2022-06-08 17:00:51 -03:00
|
|
|
android:text="@string/verify_display_fragment__to_verify_the_security_of_your_end_to_end_encryption_with_s"
|
|
|
|
android:textColor="@color/signal_colorOnSurfaceVariant"
|
|
|
|
android:textColorLink="@color/signal_colorPrimary" />
|
2021-08-27 15:56:54 -03:00
|
|
|
</LinearLayout>
|
2021-09-07 17:50:36 -03:00
|
|
|
</ScrollView>
|
2016-08-24 18:51:45 -07:00
|
|
|
|
2021-09-07 17:50:36 -03:00
|
|
|
<View
|
|
|
|
android:id="@+id/toolbar_shadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="5dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="@drawable/toolbar_shadow"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2023-07-19 10:17:45 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/header_barrier"
|
2021-09-07 17:50:36 -03:00
|
|
|
tools:visibility="visible" />
|
2021-08-27 15:56:54 -03:00
|
|
|
|
2021-09-07 17:50:36 -03:00
|
|
|
<View
|
|
|
|
android:id="@+id/verify_identity_bottom_shadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="5dp"
|
|
|
|
android:background="@drawable/bottom_toolbar_shadow"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/verify_button_container" />
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/verify_button_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="96dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="parent">
|
2022-05-26 17:32:52 -03:00
|
|
|
|
2021-08-27 15:56:54 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/verify_button"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Widget.Button.Large.Tonal"
|
2021-08-27 15:56:54 -03:00
|
|
|
android:layout_width="match_parent"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
2021-09-07 17:50:36 -03:00
|
|
|
android:layout_marginTop="16dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
2021-08-27 15:56:54 -03:00
|
|
|
android:text="@string/verify_display_fragment__mark_as_verified"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAllCaps="false" />
|
2021-09-07 17:50:36 -03:00
|
|
|
</FrameLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|