aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res/layout/unit_details_information.xml
blob: f4b6fae0924caca6d43276c2edfc484a8b2d27e5 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    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"
    android:orientation="vertical"
    android:scrollbars="vertical">

    <com.google.android.material.card.MaterialCardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:cardCornerRadius="@dimen/card_border_radius"
        app:cardElevation="@dimen/card_elevation"
        app:cardUseCompatPadding="true"
        app:contentPadding="@dimen/card_padding">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:id="@+id/nameDetail"
                style="@style/TextAppearance.AppCompat.Headline"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textColor="@color/colorPrimaryDark"
                tools:text="1AAUTO" />

            <TableLayout
                android:id="@+id/informationTable"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:stretchColumns="*">
                <TableRow
                    android:background="@color/colorPrimary">
                    <TextView
                        android:text="@string/key"
                        android:textColor="@color/background"
                        android:paddingHorizontal="@dimen/padding"/>

                    <TextView
                        android:text="@string/value"
                        android:textColor="@color/background"
                        android:paddingHorizontal="@dimen/padding"/>
                </TableRow>
            </TableLayout>

        </LinearLayout>

    </com.google.android.material.card.MaterialCardView>

</LinearLayout>