2019-01-25 13:54:27 -06:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2019-01-25 13:54:27 -06:00
|
|
|
android:id="@+id/luckyNumberProgress"
|
2019-08-26 13:54:20 -05:00
|
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar"
|
2019-01-25 13:54:27 -06:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:indeterminate="true"
|
2019-03-10 05:57:11 -05:00
|
|
|
tools:visibility="invisible" />
|
2019-01-25 13:54:27 -06:00
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/luckyNumberSwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/luckyNumberContent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="300dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/lucky_number_header"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/luckyNumberText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-10 05:57:11 -05:00
|
|
|
android:textSize="52sp"
|
|
|
|
tools:text="14" />
|
2019-01-25 13:54:27 -06:00
|
|
|
</LinearLayout>
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/luckyNumberEmpty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2019-01-25 13:54:27 -06:00
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_more_lucky_number"
|
|
|
|
app:tint="?colorOnBackground"
|
|
|
|
tools:ignore="ContentDescription" />
|
2019-01-25 13:54:27 -06:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/lucky_number_empty"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
</LinearLayout>
|
2019-11-24 10:05:09 -06:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/luckyNumberError"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="UseCompoundDrawables"
|
|
|
|
tools:visibility="invisible">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_error"
|
|
|
|
app:tint="?colorOnBackground"
|
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/luckyNumberErrorMessage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:text="@string/error_unknown"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/luckyNumberErrorDetails"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:text="@string/all_details" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/luckyNumberErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2019-01-25 13:54:27 -06:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|