-
-
Notifications
You must be signed in to change notification settings - Fork 326
/
layout_apps_item.xml
78 lines (70 loc) · 3.01 KB
/
layout_apps_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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/itemRow">
<TextView
android:visibility="visible"
android:id="@+id/tvHeader"
android:layout_marginStart="8dp"
tools:text="@string/apps_suggested_title"
android:textColor="@color/text_purple"
android:layout_width="wrap_content"
android:textStyle="bold"
android:layout_height="wrap_content"/>
<TextView
android:layout_marginTop="-4dp"
android:layout_marginBottom="-2dp"
tools:visibility="visible"
android:visibility="gone"
android:id="@+id/tvSubheader"
tools:text="@string/app_suggested_subtitle"
android:textColor="@android:color/white"
android:layout_marginStart="8dp"
android:layout_marginEnd="4dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<androidx.constraintlayout.widget.ConstraintLayout
android:visibility="visible"
android:id="@+id/appContainer"
android:layout_width="match_parent"
android:layout_height="60dp">
<CheckBox
android:id="@+id/itemcheck"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginEnd="@dimen/activity_horizontal_margin" />
<ImageView
android:layout_marginStart="4dp"
android:id="@+id/itemicon"
android:layout_width="48dp"
android:layout_height="match_parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_heart"
app:layout_constraintStart_toEndOf="@id/itemcheck" />
<TextView
android:textColor="@android:color/white"
android:id="@+id/itemtext"
android:layout_width="280dp"
android:layout_height="match_parent"
android:singleLine="true"
android:textSize="18sp"
android:scrollHorizontally="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:clickable="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit ="marquee_forever"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toEndOf="@id/itemicon"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="2dp"
tools:text="App Name Here that is really long"
android:gravity="center_vertical"
android:layout_marginStart="@dimen/activity_horizontal_margin" />
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>