/
mal_material_about_action_item.xml
58 lines (53 loc) · 2.34 KB
/
mal_material_about_action_item.xml
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
56
57
58
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/mal_baseline_half"
android:paddingBottom="@dimen/mal_baseline_half"
android:paddingStart="8dp"
android:orientation="horizontal"
android:paddingLeft="8dp">
<ImageView
android:id="@+id/mal_item_image"
android:layout_width="@dimen/mal_action_item_image_width"
android:layout_height="@dimen/mal_action_action_item_image_height"
android:layout_gravity="center"
android:layout_marginEnd="@dimen/mal_baseline_half"
android:layout_marginLeft="@dimen/mal_baseline"
android:layout_marginRight="@dimen/mal_baseline_half"
android:layout_marginStart="@dimen/mal_baseline"
android:adjustViewBounds="false"
android:tint="?colorOnSurface"
android:contentDescription="@null"
android:cropToPadding="false"
android:scaleType="centerInside" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:minHeight="@dimen/mal_action_action_item_image_height"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:layout_marginEnd="@dimen/mal_baseline"
android:layout_marginLeft="@dimen/mal_baseline"
android:layout_marginRight="@dimen/mal_baseline"
android:layout_marginStart="@dimen/mal_baseline"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/mal_item_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?attr/textAppearanceBody1"
tools:text="Version" />
<TextView
android:id="@+id/mal_action_item_subtext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="?android:textColorSecondary"
android:visibility="gone"
tools:text="Current Version Of App"
tools:visibility="visible" />
</LinearLayout>
</LinearLayout>