2
2
<merge xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
>
5
+ <androidx .constraintlayout.widget.ConstraintLayout
6
+ android : id =" @+id/toolbar_layout"
7
+ android : layout_width =" match_parent"
8
+ android : layout_height =" ?attr/actionBarSize"
9
+ app : layout_constraintTop_toTopOf =" parent" >
5
10
6
- <ImageButton
7
- android : id =" @+id/back"
8
- android : layout_width =" wrap_content"
9
- android : layout_height =" match_parent"
10
- app : layout_constraintBottom_toBottomOf =" parent"
11
- app : layout_constraintStart_toStartOf =" parent"
12
- app : layout_constraintTop_toTopOf =" parent"
13
- android : layout_centerVertical =" true"
14
- android : background =" ?attr/selectableItemBackgroundBorderless"
15
- android : padding =" @dimen/standard_gap"
16
- android : clickable =" true"
17
- android : focusable =" true"
18
- app : srcCompat =" ?attr/custom_selector_back" />
11
+ <ImageButton
12
+ android : id =" @+id/back"
13
+ android : layout_width =" wrap_content"
14
+ android : layout_height =" match_parent"
15
+ app : layout_constraintBottom_toBottomOf =" parent"
16
+ app : layout_constraintStart_toStartOf =" parent"
17
+ app : layout_constraintTop_toTopOf =" parent"
18
+ android : layout_centerVertical =" true"
19
+ android : background =" ?attr/selectableItemBackgroundBorderless"
20
+ android : padding =" @dimen/standard_gap"
21
+ android : clickable =" true"
22
+ android : focusable =" true"
23
+ app : srcCompat =" ?attr/custom_selector_back"
24
+ android : contentDescription =" @string/back" />
19
25
26
+ <TextView
27
+ android : id =" @+id/title"
28
+ android : textAlignment =" center"
29
+ android : layout_width =" 0dp"
30
+ android : layout_height =" wrap_content"
31
+ app : layout_constraintStart_toEndOf =" @id/back"
32
+ app : layout_constraintEnd_toStartOf =" @id/done"
33
+ app : layout_constraintTop_toTopOf =" parent"
34
+ app : layout_constraintBottom_toBottomOf =" parent"
35
+ android : singleLine =" true"
36
+ android : ellipsize =" end"
37
+ android : text =" @string/custom_selector_title"
38
+ style =" @style/TextAppearance.AppCompat.Widget.ActionBar.Title" />
20
39
21
- <TextView
22
- android : id =" @+id/title"
23
- android : layout_width =" wrap_content"
24
- android : layout_height =" wrap_content"
25
- app : layout_constraintStart_toEndOf =" @id/back"
26
- app : layout_constraintTop_toTopOf =" parent"
27
- app : layout_constraintBottom_toBottomOf =" parent"
28
- android : layout_marginHorizontal =" @dimen/standard_gap"
29
- android : ellipsize =" end"
30
- android : maxLines =" 1"
31
- android : text =" @string/custom_selector_title"
32
- style =" @style/TextAppearance.AppCompat.Widget.ActionBar.Title" />
33
-
34
- <ImageButton
35
- android : id =" @+id/done"
36
- app : layout_constraintEnd_toEndOf =" parent"
37
- app : layout_constraintTop_toTopOf =" parent"
38
- android : layout_width =" wrap_content"
39
- android : layout_height =" match_parent"
40
- android : layout_centerVertical =" true"
41
- android : clickable =" true"
42
- android : background =" ?attr/selectableItemBackgroundBorderless"
43
- android : focusable =" true"
44
- android : padding =" @dimen/standard_gap"
45
- app : srcCompat =" ?attr/custom_selector_done" />
40
+ <ImageButton
41
+ android : id =" @+id/done"
42
+ app : layout_constraintEnd_toEndOf =" parent"
43
+ app : layout_constraintTop_toTopOf =" parent"
44
+ android : layout_width =" wrap_content"
45
+ android : layout_height =" match_parent"
46
+ android : layout_centerVertical =" true"
47
+ android : clickable =" true"
48
+ android : background =" ?attr/selectableItemBackgroundBorderless"
49
+ android : focusable =" true"
50
+ android : padding =" @dimen/standard_gap"
51
+ app : srcCompat =" ?attr/custom_selector_done"
52
+ android : visibility =" invisible"
53
+ android : contentDescription =" @string/done" />
46
54
55
+ </androidx .constraintlayout.widget.ConstraintLayout>
47
56
</merge >
0 commit comments