1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <RelativeLayout
3
+ xmlns : android =" http://schemas.android.com/apk/res/android"
3
4
xmlns : tools =" http://schemas.android.com/tools"
4
5
android : layout_width =" match_parent"
5
6
android : layout_height =" wrap_content"
6
7
android : layout_centerInParent =" true"
7
8
android : layout_gravity =" center"
8
9
android : orientation =" vertical"
10
+ tools : context =" com.vk.sdk.dialogs.VKShareDialog"
11
+ tools : ignore =" RtlHardcoded" >
9
12
10
- tools : context =" com.vk.sdk.dialogs.VKShareDialog" >
11
13
<View
12
14
android : layout_width =" 0dp"
13
15
android : layout_height =" 0dp"
14
16
android : focusable =" true"
15
- android : focusableInTouchMode =" true" />
17
+ android : focusableInTouchMode =" true" />
16
18
17
- <RelativeLayout
19
+ <FrameLayout
18
20
android : id =" @+id/topBarLayout"
19
21
android : layout_width =" match_parent"
20
22
android : layout_height =" @dimen/vk_share_top_panel_height"
21
23
android : background =" @color/vk_share_top_blue_color" >
22
24
23
- <LinearLayout
24
- android : layout_width =" match_parent"
25
- android : layout_height =" match_parent"
26
- android : layout_alignParentStart =" true"
27
- android : layout_toStartOf =" @+id/sendButtonLayout" >
28
-
29
- <ImageView
30
- android : layout_width =" wrap_content"
31
- android : layout_height =" match_parent"
32
- android : layout_marginStart =" @dimen/vk_share_top_image_margin"
33
- android : scaleType =" fitCenter"
34
- android : src =" @drawable/ic_ab_app"
35
- android : contentDescription =" @string/vk_name" />
36
-
37
- <TextView
38
- android : layout_width =" match_parent"
39
- android : layout_height =" match_parent"
40
- android : layout_marginStart =" @dimen/vk_share_top_title_margin"
41
- android : gravity =" center_vertical"
42
- android : text =" @string/vk_share"
43
- android : textColor =" @color/vk_white"
44
- android : textSize =" @dimen/vk_share_title_text_size" />
45
- </LinearLayout >
25
+ <ImageButton
26
+ android : id =" @+id/close_btn"
27
+ android : layout_width =" @dimen/vk_share_top_panel_height"
28
+ android : layout_height =" @dimen/vk_share_top_panel_height"
29
+ android : background =" @null"
30
+ android : src =" @drawable/ic_close_white_24dp" />
46
31
47
- <LinearLayout
48
- android : id =" @+id/sendButtonLayout"
32
+ <ImageView
49
33
android : layout_width =" wrap_content"
50
34
android : layout_height =" wrap_content"
51
- android : layout_alignParentEnd =" true" >
35
+ android : layout_gravity =" center"
36
+ android : contentDescription =" @string/vk_name"
37
+ android : scaleType =" fitCenter"
38
+ android : src =" @drawable/ic_ab_app" />
52
39
53
- <View
54
- android : layout_width =" 1dp"
55
- android : layout_height =" match_parent"
56
- android : layout_margin =" @dimen/vk_share_top_line_margin"
57
- android : background =" #3fff" />
58
-
59
- <ProgressBar
60
- android : id =" @+id/sendProgress"
61
- android : layout_width =" wrap_content"
62
- android : layout_height =" match_parent"
63
- android : indeterminate =" true"
64
- android : visibility =" gone" />
65
-
66
- <Button
67
- android : id =" @+id/sendButton"
68
- android : layout_width =" wrap_content"
69
- android : layout_height =" match_parent"
70
- android : background =" @drawable/vk_share_send_button_background"
71
- android : drawableStart =" @drawable/ic_ab_done"
72
- android : drawablePadding =" 3dp"
73
- android : paddingStart =" @dimen/vk_share_top_button_padding_left"
74
- android : paddingEnd =" @dimen/vk_share_top_button_padding_right"
75
- android : text =" @string/vk_send"
76
- android : textAllCaps =" true"
77
- android : textColor =" @color/vk_white"
78
- android : textSize =" @dimen/vk_share_send_text_size"
79
- android : textStyle =" bold" />
80
- </LinearLayout >
81
-
82
- </RelativeLayout >
40
+ </FrameLayout >
83
41
84
42
<LinearLayout
43
+ android : id =" @+id/postContent"
85
44
android : layout_width =" match_parent"
86
45
android : layout_height =" wrap_content"
87
46
android : layout_below =" @+id/topBarLayout"
113
72
android : inputType =" textCapSentences|textMultiLine"
114
73
android : textColor =" @color/vk_black"
115
74
android : textColorHint =" @color/vk_share_link_color"
116
- android : textSize =" @dimen/vk_share_title_text_size" />
75
+ android : textSize =" @dimen/vk_share_title_text_size" />
117
76
118
77
<HorizontalScrollView
119
78
android : id =" @+id/imagesScrollView"
125
84
android : id =" @+id/imagesContainer"
126
85
android : layout_width =" wrap_content"
127
86
android : layout_height =" match_parent"
128
- android : orientation =" horizontal" />
87
+ android : orientation =" horizontal" />
129
88
</HorizontalScrollView >
130
89
131
90
<LinearLayout
144
103
android : ellipsize =" end"
145
104
android : lines =" 1"
146
105
android : textColor =" @color/vk_share_link_title_color"
147
- android : textSize =" @dimen/vk_share_title_link_title_size" />
106
+ android : textSize =" @dimen/vk_share_title_link_title_size" />
148
107
149
108
<TextView
150
109
android : id =" @+id/linkHost"
154
113
android : ellipsize =" end"
155
114
android : lines =" 1"
156
115
android : textColor =" @color/vk_share_link_color"
157
- android : textSize =" @dimen/vk_share_title_link_host_size" />
116
+ android : textSize =" @dimen/vk_share_title_link_host_size" />
158
117
</LinearLayout >
159
118
</LinearLayout >
160
119
</ScrollView >
172
131
android : layout_height =" 1dp"
173
132
android : layout_marginLeft =" @dimen/vk_share_dialog_padding"
174
133
android : layout_marginRight =" @dimen/vk_share_dialog_padding"
175
- android : background =" @color/vk_share_gray_line" />
134
+ android : background =" @color/vk_share_gray_line" />
176
135
177
136
<Button
178
137
android : layout_width =" match_parent"
179
138
android : layout_height =" wrap_content"
180
139
android : background =" @drawable/vk_share_send_button_background"
181
140
android : text =" @string/vk_new_post_settings"
182
- android : textColor =" @color/vk_share_blue_color" />
141
+ android : textColor =" @color/vk_share_blue_color" />
183
142
</LinearLayout >
184
143
</LinearLayout >
144
+
145
+ <LinearLayout
146
+ android : id =" @+id/sendButtonLayout"
147
+ android : layout_width =" match_parent"
148
+ android : layout_height =" 48dp"
149
+ android : layout_below =" @+id/postContent"
150
+ android : background =" @color/vk_share_top_blue_color"
151
+ android : gravity =" center" >
152
+
153
+ <ProgressBar
154
+ android : id =" @+id/sendProgress"
155
+ android : layout_width =" wrap_content"
156
+ android : layout_height =" wrap_content"
157
+ android : indeterminate =" true"
158
+ android : visibility =" gone" />
159
+
160
+ <Button
161
+ android : id =" @+id/sendButton"
162
+ android : layout_width =" wrap_content"
163
+ android : layout_height =" match_parent"
164
+ android : background =" @drawable/vk_share_send_button_background"
165
+ android : fontFamily =" sans-serif-medium"
166
+ android : text =" @string/vk_send"
167
+ android : textColor =" @color/vk_white"
168
+ android : textSize =" @dimen/vk_share_send_text_size" />
169
+ </LinearLayout >
170
+
171
+ <View
172
+ android : layout_width =" match_parent"
173
+ android : layout_height =" 12dp"
174
+ android : layout_below =" @+id/topBarLayout"
175
+ android : background =" @drawable/bg_toolbar_shadow_dark" />
185
176
</RelativeLayout >
0 commit comments