forked from stratumauth/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listItemAuthCompact.axml
127 lines (115 loc) · 5.64 KB
/
listItemAuthCompact.axml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="?attr/cardStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="10dp">
<LinearLayout
android:id="@+id/layoutIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginStart="18dp"
app:layout_constraintEnd_toStartOf="@+id/layoutControl"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintHorizontal_bias="0">
<ImageView
android:id="@+id/imageIcon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_gravity="center"
android:layout_marginEnd="12dp"
android:scaleType="centerInside"
android:src="@drawable/auth_github"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textIssuer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceTitleMedium"
android:text="GitHub"/>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textUsername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceLabelMedium"
android:text="johnsmith@example.com"/>
</LinearLayout>
</LinearLayout>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/textCode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="58dp"
android:layout_marginTop="2dp"
android:layout_marginBottom="10dp"
android:text="000 000"
android:textDirection="ltr"
android:textAppearance="?attr/textAppearanceTitleLarge"
android:textColor="?attr/colorOnSecondaryContainer"
app:layout_constraintBottom_toTopOf="@id/progressIndicator"
app:layout_constraintEnd_toStartOf="@id/layoutControl"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/layoutIcon"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintVertical_bias="1"/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layoutControl"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginEnd="10dp"
android:paddingTop="2dp"
android:paddingBottom="12dp"
app:layout_constraintBottom_toTopOf="@id/progressIndicator"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageButton
android:id="@+id/buttonMenu"
android:layout_width="40dp"
android:layout_height="26dp"
android:background="?selectableItemBackgroundBorderless"
android:scaleType="centerInside"
android:src="@drawable/baseline_more_vert_24"
app:tint="?attr/colorOnSurface"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
<ImageButton
android:id="@+id/buttonRefresh"
android:layout_width="40dp"
android:layout_height="26dp"
android:layout_marginTop="6dp"
android:background="?selectableItemBackgroundBorderless"
android:scaleType="centerInside"
android:src="@drawable/baseline_refresh_24"
app:tint="?attr/colorOnSurface"
app:layout_constraintStart_toEndOf="@id/buttonMenu"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.progressindicator.LinearProgressIndicator
android:id="@+id/progressIndicator"
style="?attr/progressIndicatorStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
android:max="10000"
android:min="0"
android:progress="10000"
app:showAnimationBehavior="outward"
app:trackColor="@android:color/transparent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>