Commit c2a58476 authored by Eugene Shapovalov's avatar Eugene Shapovalov 💬

Update portrait layout to fit all screens.

parent 5c4c5668
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.constraint.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:id="@+id/zeroLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Space
android:id="@+id/spaceTop"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@id/zeroImageView"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
app:layout_constraintVertical_weight="1" />
<ImageView
android:id="@+id/zeroImageView"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/default_img"
app:layout_constraintBottom_toTopOf="@+id/titleTextView"
app:layout_constraintBottom_toTopOf="@id/spaceMiddle"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"/>
app:layout_constraintTop_toBottomOf="@id/spaceTop" />
<Space
android:id="@+id/spaceMiddle"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@id/titleTextView"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/zeroImageView"
app:layout_constraintVertical_weight="1" />
<TextView
android:id="@+id/titleTextView"
style="@style/TextHeadline"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:layout_marginStart="24dp"
android:layout_marginTop="64dp"
android:layout_marginEnd="24dp"
android:gravity="center"
app:layout_constraintBottom_toTopOf="@+id/descriptionTextView"
app:layout_constraintBottom_toTopOf="@id/descriptionTextView"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/zeroImageView"
tools:text="@string/empty_error"/>
app:layout_constraintTop_toBottomOf="@id/spaceMiddle"
tools:text="@string/empty_error" />
<TextView
android:id="@+id/descriptionTextView"
style="@style/TextBody"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="24dp"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toTopOf="@id/spaceBottom"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/titleTextView"
tools:text="@string/empty_error_description"/>
tools:text="@string/empty_error_description" />
<Space
android:id="@+id/spaceBottom"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@id/refreshButton"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/descriptionTextView"
app:layout_constraintVertical_weight="1" />
<Button
android:id="@+id/refreshButton"
style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="24dp"
android:text="@string/refresh"
android:layout_marginBottom="24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/spaceBottom" />
</android.support.constraint.ConstraintLayout>
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