2019-06-03 00:43:54 +02:00
|
|
|
<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"
|
|
|
|
tools:context=".ui.modules.mobiledevice.MobileDeviceFragment">
|
|
|
|
|
2021-02-01 11:45:10 +01:00
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
2019-06-03 00:43:54 +02:00
|
|
|
android:id="@+id/mobileDevicesProgress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:indeterminate="true"
|
|
|
|
tools:visibility="invisible" />
|
|
|
|
|
2019-11-24 17:05:09 +01:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/mobileDevicesSwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/mobileDevicesRecycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:listitem="@layout/item_mobile_device" />
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
2019-06-03 00:43:54 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/mobileDevicesEmpty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2019-06-03 00:43:54 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/mobile_devices_no_items"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="100dp"
|
|
|
|
android:minHeight="100dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
app:srcCompat="@drawable/ic_more_mobile_devices"
|
2019-06-03 00:43:54 +02:00
|
|
|
app:tint="?android:attr/textColorPrimary"
|
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-11-24 17:05:09 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/mobileDevicesError"
|
2019-06-03 00:43:54 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-11-24 17:05:09 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="UseCompoundDrawables"
|
|
|
|
tools:visibility="invisible">
|
2019-06-03 00:43:54 +02:00
|
|
|
|
2019-11-24 17:05:09 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_error"
|
|
|
|
app:tint="?colorOnBackground"
|
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/mobileDevicesErrorMessage"
|
|
|
|
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
|
2019-06-03 00:43:54 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-11-24 17:05:09 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/mobileDevicesErrorDetails"
|
|
|
|
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/mobileDevicesErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2019-06-03 00:43:54 +02:00
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/mobileDeviceAddButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="16dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:tint="?colorOnSecondary"
|
2021-04-03 11:56:07 +02:00
|
|
|
app:srcCompat="@drawable/ic_all_add"
|
|
|
|
tools:ignore="ContentDescription" />
|
2019-06-03 00:43:54 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|