/fragment_wallpaper.xml Secret
Created
September 22, 2018 19:41
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<ProgressBar | |
android:id="@+id/rotator" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<androidx.constraintlayout.widget.Group | |
android:id="@+id/error_group" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:constraint_referenced_ids="iv_error_icon,tv_error,btn_retry" /> | |
<ImageView | |
android:id="@+id/iv_error_icon" | |
android:layout_width="44dp" | |
android:layout_height="44dp" | |
android:layout_marginBottom="8dp" | |
app:layout_constraintBottom_toTopOf="@+id/tv_error" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:srcCompat="@drawable/ic_error" /> | |
<TextView | |
android:id="@+id/tv_error" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:layout_marginBottom="8dp" | |
android:textColor="@color/blackTextColor" | |
android:textSize="18sp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
tools:text="Sample Error Text" /> | |
<Button | |
android:id="@+id/btn_retry" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:drawableStart="@drawable/ic_reload" | |
android:drawablePadding="4dp" | |
android:text="@string/retry" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/tv_error" /> | |
<com.github.chrisbanes.photoview.PhotoView | |
android:id="@+id/pv_wallpaper" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment