summaryrefslogtreecommitdiffstats
path: root/app/src/main/res
diff options
context:
space:
mode:
authorbt <bt@rctt.net>2026-05-04 01:22:33 +0200
committerbt <bt@rctt.net>2026-05-04 01:22:33 +0200
commitf4c07069c1604c45a6a57b30338bd5a32887e24a (patch)
treeaaa8bc1577721f63d3d4c80e47a3b2e7d3b496b7 /app/src/main/res
parent5c282707a9c8183f165adabb478d4315afaf3676 (diff)
downloadnetmon-f4c07069c1604c45a6a57b30338bd5a32887e24a.tar.gz
netmon-f4c07069c1604c45a6a57b30338bd5a32887e24a.zip
Create "CellView"
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_main.xml2
-rw-r--r--app/src/main/res/layout/cell_view.xml38
-rw-r--r--app/src/main/res/values-night/styles.xml6
-rw-r--r--app/src/main/res/values/attrs_cell_view.xml8
-rw-r--r--app/src/main/res/values/colors.xml4
-rw-r--r--app/src/main/res/values/styles.xml6
6 files changed, 63 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index e7c0e2c..f3a3014 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -28,7 +28,7 @@
android:layout_height="400dp">
<LinearLayout
- android:id="@+id/cellView"
+ android:id="@+id/cellsList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
diff --git a/app/src/main/res/layout/cell_view.xml b/app/src/main/res/layout/cell_view.xml
new file mode 100644
index 0000000..4b58958
--- /dev/null
+++ b/app/src/main/res/layout/cell_view.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout 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">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/type"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="TextView" />
+
+ <TextView
+ android:id="@+id/id"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="TextView" />
+
+ <TextView
+ android:id="@+id/power"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="TextView" />
+
+ <View
+ android:id="@+id/divider2"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="?android:attr/listDivider" />
+ </LinearLayout>
+
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/app/src/main/res/values-night/styles.xml b/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..04e74eb
--- /dev/null
+++ b/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,6 @@
+<resources>
+ <style name="Widget.Theme.Netmon.MyView" parent="">
+ <item name="android:background">@color/gray_600</item>
+ <item name="exampleColor">@color/light_blue_600</item>
+ </style>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/attrs_cell_view.xml b/app/src/main/res/values/attrs_cell_view.xml
new file mode 100644
index 0000000..2a0577c
--- /dev/null
+++ b/app/src/main/res/values/attrs_cell_view.xml
@@ -0,0 +1,8 @@
+<resources>
+ <declare-styleable name="CellView">
+ <attr name="exampleString" format="string" />
+ <attr name="exampleDimension" format="dimension" />
+ <attr name="exampleColor" format="color" />
+ <attr name="exampleDrawable" format="color|reference" />
+ </declare-styleable>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index c8524cd..e2337bb 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -2,4 +2,8 @@
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
+ <color name="light_blue_400">#FF29B6F6</color>
+ <color name="light_blue_600">#FF039BE5</color>
+ <color name="gray_400">#FFBDBDBD</color>
+ <color name="gray_600">#FF757575</color>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5ed5dd0
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,6 @@
+<resources>
+ <style name="Widget.Theme.Netmon.MyView" parent="">
+ <item name="android:background">@color/gray_400</item>
+ <item name="exampleColor">@color/light_blue_400</item>
+ </style>
+</resources> \ No newline at end of file