wulkanowy-mod/app/src/main/res/layout/fragment_mobile_device.xml

66 lines
2.6 KiB
XML
Raw Normal View History

2019-06-02 17:43:54 -05: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">
2019-08-26 13:54:20 -05:00
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
2019-06-02 17:43:54 -05:00
android:id="@+id/mobileDevicesProgress"
2019-08-26 13:54:20 -05:00
style="@style/Widget.MaterialProgressBar.ProgressBar"
2019-06-02 17:43:54 -05:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true"
tools:visibility="invisible" />
<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 13:54:20 -05:00
android:visibility="gone"
tools:ignore="UseCompoundDrawables">
2019-06-02 17:43:54 -05: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 13:54:20 -05:00
app:srcCompat="@drawable/ic_more_mobile_devices"
2019-06-02 17:43:54 -05:00
app:tint="?android:attr/textColorPrimary"
tools:ignore="contentDescription" />
</LinearLayout>
<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>
<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 13:54:20 -05:00
android:tint="?colorOnSecondary"
app:srcCompat="@drawable/ic_all_add" />
2019-06-02 17:43:54 -05:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>