summaryrefslogtreecommitdiff
path: root/benchmark/app/src/main/res/layout/card_layout.xml
blob: 28154a7a8e2b368b9f48ea47d920441bbcaa21d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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>