2
2
<androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
xmlns : tools =" http://schemas.android.com/tools"
5
+ android : id =" @+id/parentLayout"
5
6
android : layout_width =" match_parent"
6
7
android : layout_height =" wrap_content"
7
- tools : context =" .activity.enabledapps.EnabledAppsActivity"
8
- android : id =" @+id/parentLayout" >
8
+ tools : context =" .activity.enabledapps.EnabledAppsActivity" >
9
9
10
10
<com .google.android.material.imageview.ShapeableImageView
11
11
android : id =" @+id/appIcon"
12
12
android : layout_width =" 50dp"
13
13
android : layout_height =" 50dp"
14
+ android : padding =" 2dp"
14
15
android : src =" @drawable/ic_android_default_round"
15
16
app : layout_constraintBottom_toBottomOf =" parent"
16
17
app : layout_constraintStart_toStartOf =" parent"
17
18
app : layout_constraintTop_toTopOf =" parent"
18
19
app : shapeAppearanceOverlay =" @style/ShapeAppearanceOverlay.App.CornerSize50Percent"
19
- app : strokeWidth =" 3dp"
20
20
app : strokeColor =" @android:color/darker_gray"
21
- android : padding = " 2dp " />
21
+ app : strokeWidth = " 3dp " />
22
22
23
- <!-- Using layout direction rtl to show check box on right side, this might show odd id design view but it'll be right in device-->
24
- <CheckBox
23
+ <androidx .appcompat.widget.AppCompatTextView
25
24
android : id =" @+id/appName"
26
- android : layout_width =" match_parent "
25
+ android : layout_width =" 0dp "
27
26
android : layout_height =" match_parent"
28
- android : layout_marginStart =" 60dp"
29
- app : layout_constraintStart_toEndOf =" @+id/appIcon"
27
+ android : layout_marginStart =" 10dp"
28
+ android : textColor =" @color/black"
29
+ android : textSize =" 18sp"
30
30
app : layout_constraintBottom_toBottomOf =" parent"
31
+ app : layout_constraintStart_toEndOf =" @+id/appIcon"
31
32
app : layout_constraintTop_toTopOf =" parent"
32
- android : layoutDirection =" rtl"
33
- />
33
+ app : layout_constraintEnd_toStartOf =" @+id/guideline3" />
34
+
35
+ <androidx .constraintlayout.widget.Guideline
36
+ android : id =" @+id/guideline3"
37
+ android : layout_width =" wrap_content"
38
+ android : layout_height =" wrap_content"
39
+ android : orientation =" vertical"
40
+ app : layout_constraintGuide_percent =" 0.9"
41
+ app : layout_constraintGuide_begin =" 20dp" />
42
+
43
+ <CheckBox
44
+ android : id =" @+id/appNameCheckBox"
45
+ android : layout_width =" wrap_content"
46
+ android : layout_height =" match_parent"
47
+ android : layout_marginStart =" 5dp"
48
+ app : layout_constraintBottom_toBottomOf =" parent"
49
+ app : layout_constraintEnd_toEndOf =" parent"
50
+ app : layout_constraintStart_toEndOf =" @+id/guideline3"
51
+ app : layout_constraintTop_toTopOf =" parent" />
34
52
35
53
</androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments