Signal-Android/app/src/main/res/layout/text_avatar_creation_fragme...

89 wiersze
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.components.KeyboardAwareLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/keyboard_aware_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.thoughtcrime.securesms.util.views.DarkOverflowToolbar
android:id="@+id/text_avatar_creation_toolbar"
android:layout_width="match_parent"
android:layout_height="56dp"
android:theme="?attr/settingsToolbarStyle"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navigationIcon="@drawable/ic_arrow_left_24"
app:title="@string/TextAvatarCreationFragment__preview"
app:titleTextAppearance="@style/Signal.Text.Title" />
<View
android:id="@+id/text_avatar_creation_hairline"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_marginTop="-1dp"
android:background="@color/transparent_black_05"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/text_avatar_creation_tabs" />
<org.thoughtcrime.securesms.components.ControllableTabLayout
android:id="@+id/text_avatar_creation_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/text_avatar_creation_toolbar"
app:tabGravity="fill"
app:tabIndicatorColor="@color/signal_inverse_primary"
app:tabIndicatorFullWidth="false"
app:tabMode="fixed"
app:tabTextAppearance="@style/TextAppearance.Signal.Body2">
<com.google.android.material.tabs.TabItem
android:id="@+id/text_avatar_creation_tab_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/TextAvatarCreationFragment__text" />
<com.google.android.material.tabs.TabItem
android:id="@+id/text_avatar_creation_tab_color"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/TextAvatarCreationFragment__color" />
</org.thoughtcrime.securesms.components.ControllableTabLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:fillViewport="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/text_avatar_creation_tabs">
<include layout="@layout/text_avatar_creation_fragment_content_hidden_recycler" />
</ScrollView>
<com.google.android.material.button.MaterialButton
android:id="@+id/text_avatar_creation_done"
style="@style/Signal.Widget.Button.Large.Primary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:minHeight="48dp"
android:text="@string/TextAvatarCreationFragment__done"
app:cornerRadius="28dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</org.thoughtcrime.securesms.components.KeyboardAwareLinearLayout>