summaryrefslogtreecommitdiff
path: root/benchmark/app/src/main/res/layout/card_layout.xml
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /benchmark/app/src/main/res/layout/card_layout.xml
add: added projectsHEADmain
Diffstat (limited to 'benchmark/app/src/main/res/layout/card_layout.xml')
-rw-r--r--benchmark/app/src/main/res/layout/card_layout.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/benchmark/app/src/main/res/layout/card_layout.xml b/benchmark/app/src/main/res/layout/card_layout.xml
new file mode 100644
index 0000000..28154a7
--- /dev/null
+++ b/benchmark/app/src/main/res/layout/card_layout.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" android:padding="5dp" android:layout_margin="5dp">
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="4dp"
+ android:background="@drawable/card_bg">
+
+ <ImageView
+ android:contentDescription="@string/bench_image" android:src="@drawable/ic_bench_icon"
+ android:layout_width="50dp"
+ android:layout_height="50dp" android:id="@+id/benchPfp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"/>
+ <TextView
+ android:text="@string/bench_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/benchName"
+ app:layout_constraintStart_toEndOf="@id/benchPfp" app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/benchPos"/>
+ <TextView
+ android:text="@string/bench_position"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/benchPos"
+ app:layout_constraintTop_toBottomOf="@id/benchName"
+ app:layout_constraintBottom_toTopOf="@id/benchRating"
+ app:layout_constraintStart_toEndOf="@id/benchPfp" app:layout_constraintEnd_toEndOf="parent"/>
+ <RatingBar
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:id="@+id/benchRating"
+ android:isIndicator="true"
+ app:layout_constraintStart_toEndOf="@id/benchPfp" app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/benchPos" app:layout_constraintBottom_toBottomOf="parent"/>
+ </androidx.constraintlayout.widget.ConstraintLayout>
+</androidx.cardview.widget.CardView>