MrZaiko/Polysmee

View on GitHub
app/src/main/res/layout-land/activity_no_connection.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
    android:layout_height="match_parent"
    tools:context=".login.NoConnectionActivity">

    <ImageView
        android:id="@+id/noConnectionImageView"
        android:layout_width="200dp"
        android:layout_height="192dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.5"
        app:layout_constraintHorizontal_bias="0.1"
        app:srcCompat="@android:drawable/presence_busy" />

    <TextView
        android:id="@+id/noConnectionText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/loginNoConnection"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.333"
        app:layout_constraintHorizontal_bias="0.9"/>

    <Button
        android:id="@+id/noConnectionRetryButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="retryConnection"
        android:text="@string/loginNoConnectionRetry"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.666"
        app:layout_constraintHorizontal_bias="0.8" />
</androidx.constraintlayout.widget.ConstraintLayout>