Commit 75011244 authored by Arthur Diniz's avatar Arthur Diniz

Makes ScrollView as the root layout

Signed-off-by: 's avatarArthur Diniz <arthurbdiniz@gmail.com>
parent 7eed06b2
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="chat.rocket.android.about.ui.AboutFragment"> tools:context="chat.rocket.android.about.ui.AboutFragment">
<ScrollView <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="wrap_content"
android:paddingTop="50dp"
<androidx.constraintlayout.widget.ConstraintLayout android:layout_gravity="center">
android:layout_width="match_parent"
<ImageView
android:id="@+id/image_app_name"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:src="@drawable/ic_app_name"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<ImageView
android:layout_width="160dp"
android:layout_height="160dp"
android:adjustViewBounds="true"
android:scaleX="1.5"
android:scaleY="1.5"
android:src="@drawable/ic_launcher_foreground"
app:layout_constraintBottom_toTopOf="@id/image_app_name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/text_version_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="50dp" tools:text="Version alpha2.0.1"
android:layout_gravity="center"> app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
<ImageView app:layout_constraintTop_toBottomOf="@+id/image_app_name"
android:id="@+id/image_app_name" android:layout_marginTop="16dp"
android:layout_width="wrap_content" android:textColor="@color/colorSecondaryText"
android:layout_height="60dp" android:textAppearance="@style/TextAppearance.AppCompat.Medium"/>
android:src="@drawable/ic_app_name"
app:layout_constraintTop_toTopOf="parent" <TextView
app:layout_constraintBottom_toBottomOf="parent" android:id="@+id/text_build_number"
app:layout_constraintStart_toStartOf="parent" android:layout_width="wrap_content"
app:layout_constraintEnd_toEndOf="parent" /> android:layout_height="wrap_content"
tools:text="Build # 2000"
<ImageView app:layout_constraintStart_toStartOf="parent"
android:layout_width="160dp" app:layout_constraintEnd_toEndOf="parent"
android:layout_height="160dp" app:layout_constraintTop_toBottomOf="@+id/text_version_name"
android:adjustViewBounds="true" android:layout_marginTop="8dp"
android:scaleX="1.5" android:textColor="@color/colorSecondaryText" />
android:scaleY="1.5"
android:src="@drawable/ic_launcher_foreground"
app:layout_constraintBottom_toTopOf="@id/image_app_name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/text_version_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Version alpha2.0.1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/image_app_name"
android:layout_marginTop="16dp"
android:textColor="@color/colorSecondaryText"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"/>
<TextView
android:id="@+id/text_build_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Build # 2000"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text_version_name"
android:layout_marginTop="8dp"
android:textColor="@color/colorSecondaryText" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </ScrollView>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment