diff options
| author | bt <bt@rctt.net> | 2026-05-04 01:22:33 +0200 |
|---|---|---|
| committer | bt <bt@rctt.net> | 2026-05-04 01:22:33 +0200 |
| commit | f4c07069c1604c45a6a57b30338bd5a32887e24a (patch) | |
| tree | aaa8bc1577721f63d3d4c80e47a3b2e7d3b496b7 /app/src/main/res | |
| parent | 5c282707a9c8183f165adabb478d4315afaf3676 (diff) | |
| download | netmon-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.xml | 2 | ||||
| -rw-r--r-- | app/src/main/res/layout/cell_view.xml | 38 | ||||
| -rw-r--r-- | app/src/main/res/values-night/styles.xml | 6 | ||||
| -rw-r--r-- | app/src/main/res/values/attrs_cell_view.xml | 8 | ||||
| -rw-r--r-- | app/src/main/res/values/colors.xml | 4 | ||||
| -rw-r--r-- | app/src/main/res/values/styles.xml | 6 |
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 |
