fragment_room.xml 3.63 KB
Newer Older
vunguyencuong's avatar
vunguyencuong committed
1 2 3 4 5 6 7 8 9
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".viettelhome.room.RoomFragment"
    android:background="#F5F5F5">

vunguyencuong's avatar
vunguyencuong committed
10 11
    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recycle_list_device_item"
vunguyencuong's avatar
vunguyencuong committed
12 13 14 15 16 17 18
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:layout_marginTop="16dp"
        android:layout_marginStart="16dp"
vunguyencuong's avatar
vunguyencuong committed
19 20 21 22
        android:layout_marginEnd="16dp"
        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
        android:orientation="vertical"
        tools:listitem="@layout/item_device" />
vunguyencuong's avatar
vunguyencuong committed
23

vunguyencuong's avatar
vunguyencuong committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<!--    <LinearLayout-->
<!--        android:layout_width="match_parent"-->
<!--        android:layout_height="0dp"-->
<!--        app:layout_constraintTop_toTopOf="parent"-->
<!--        app:layout_constraintStart_toStartOf="parent"-->
<!--        app:layout_constraintEnd_toEndOf="parent"-->
<!--        app:layout_constraintBottom_toBottomOf="parent"-->
<!--        android:layout_marginTop="16dp"-->
<!--        android:layout_marginStart="16dp"-->
<!--        android:layout_marginEnd="16dp">-->

<!--        <include-->
<!--            android:id="@+id/layout_list_device"-->
<!--            android:layout_height="300dp"-->
<!--            android:layout_width="match_parent"-->
<!--            layout= "@layout/fragment_list_device_item"-->
<!--            />-->
vunguyencuong's avatar
vunguyencuong committed
41

vunguyencuong's avatar
vunguyencuong committed
42
<!--    </LinearLayout>-->
vunguyencuong's avatar
vunguyencuong committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

<!--    <ImageView-->
<!--        android:id="@+id/img_bg_device_in_room"-->
<!--        android:layout_width="wrap_content"-->
<!--        android:layout_height="wrap_content"-->
<!--        app:layout_constraintTop_toTopOf="parent"-->
<!--        app:layout_constraintStart_toStartOf="parent"-->
<!--        app:layout_constraintEnd_toEndOf="parent"-->
<!--        app:layout_constraintBottom_toBottomOf="parent"-->
<!--        android:src="@drawable/bg_background_device"/>-->

<!--    <TextView-->
<!--        android:layout_width="wrap_content"-->
<!--        android:layout_height="wrap_content"-->
<!--        android:layout_marginTop="8dp"-->
<!--        android:text="Chưa có thiết bị"-->
<!--        android:textColor="#4E4E4E"-->
<!--        app:layout_constraintEnd_toEndOf="parent"-->
<!--        app:layout_constraintStart_toStartOf="parent"-->
<!--        app:layout_constraintTop_toBottomOf="@id/img_bg_device_in_room" />-->

<!--    <LinearLayout-->
<!--        android:layout_width="352dp"-->
<!--        android:layout_height="48dp"-->
<!--        app:layout_constraintBottom_toBottomOf="parent"-->
<!--        app:layout_constraintStart_toStartOf="parent"-->
<!--        app:layout_constraintEnd_toEndOf="parent"-->
<!--        android:layout_marginBottom="48dp"-->
<!--        android:background="@drawable/bg_background_gradient_radius_8"-->
<!--        android:gravity="center">-->

<!--        <TextView-->
<!--            android:layout_width="wrap_content"-->
<!--            android:layout_height="wrap_content"-->
<!--            android:text= "Thêm ngay"-->
<!--            android:textSize="16sp"-->
<!--            android:textColor="@color/white"-->
<!--            android:textStyle="bold"-->
<!--            android:layout_gravity="center"/>-->

<!--    </LinearLayout>-->



</androidx.constraintlayout.widget.ConstraintLayout>