Commit 5c4c5668 authored by Eugene Shapovalov's avatar Eugene Shapovalov 💬

Create landscape empty view layout.

parent 5da8c199
<?xml version="1.0" encoding="utf-8"?>
<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">
<ImageView
android:id="@+id/zeroImageView"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/default_img"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/titleTextView"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/titleTextView"
style="@style/TextHeadline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="40dp"
app:layout_constraintLeft_toRightOf="@id/zeroImageView"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="@id/zeroImageView"
tools:text="@string/empty_error" />
<TextView
android:id="@+id/descriptionTextView"
style="@style/TextBody"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginEnd="24dp"
app:layout_constraintLeft_toLeftOf="@id/titleTextView"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/titleTextView"
tools:text="@string/empty_error_description" />
<Button
android:id="@+id/refreshButton"
style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/refresh"
android:layout_marginStart="25dp"
app:layout_constraintLeft_toRightOf="@id/zeroImageView"
app:layout_constraintTop_toBottomOf="@id/descriptionTextView" />
</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