From 233efdfb6aa45965ab0808aca0b823ade6f7b87f Mon Sep 17 00:00:00 2001 From: Isidro Henoch Date: Tue, 14 Dec 2021 19:01:28 -0600 Subject: Creates the RV adapter to display the units on screen --- .../src/main/res/layout/devices_fragment.xml | 18 ++--- androidApp/src/main/res/layout/unit_item.xml | 94 ++++++++++++++++++++++ androidApp/src/main/res/layout/units_activity.xml | 3 +- androidApp/src/main/res/values/colors.xml | 2 + 4 files changed, 106 insertions(+), 11 deletions(-) create mode 100644 androidApp/src/main/res/layout/unit_item.xml (limited to 'androidApp/src/main/res') diff --git a/androidApp/src/main/res/layout/devices_fragment.xml b/androidApp/src/main/res/layout/devices_fragment.xml index 579afc2..fd91db3 100644 --- a/androidApp/src/main/res/layout/devices_fragment.xml +++ b/androidApp/src/main/res/layout/devices_fragment.xml @@ -1,17 +1,17 @@ + android:layout_height="match_parent"> - + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> \ No newline at end of file diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml new file mode 100644 index 0000000..4534339 --- /dev/null +++ b/androidApp/src/main/res/layout/unit_item.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml index 750e00f..5bfb228 100644 --- a/androidApp/src/main/res/layout/units_activity.xml +++ b/androidApp/src/main/res/layout/units_activity.xml @@ -13,8 +13,7 @@ app:layout_constraintTop_toBottomOf="@id/displayModeToggle" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintBottom_toBottomOf="parent" - android:background="@color/colorPrimary"/> + app:layout_constraintBottom_toBottomOf="parent"/> #656A74 #43474E #EB473E + #FDFDFD + #ECEFF3 \ No newline at end of file -- cgit v1.2.3