1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
- android : layout_width =" match_parent"
4
- android : layout_height =" wrap_content"
5
- android : orientation =" horizontal"
6
- android : padding =" 16dp" >
2
+
3
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
4
+ android : layout_width =" match_parent"
5
+ android : layout_height =" wrap_content"
6
+ android : orientation =" horizontal"
7
+ android : padding =" 16dp"
8
+ android : layout_weight =" 1"
9
+ android : hint =" @string/edit_text_hint"
10
+ android : inputType =" text" >
7
11
8
12
<EditText
9
13
android : id =" @+id/editTextText"
10
- android : layout_width =" 16dp "
14
+ android : layout_width =" 0dp "
11
15
android : layout_height =" wrap_content"
16
+ android : autofillHints =" name"
12
17
android : layout_weight =" 1"
13
18
android : hint =" Enter text"
14
19
android : inputType =" text" />
15
20
16
21
<Button
17
22
android : id =" @+id/buttonGenerate"
18
- android : layout_width =" 18dp "
19
- android : layout_height =" 88dp "
23
+ android : layout_width =" 0dp "
24
+ android : layout_height =" 48dp "
20
25
android : layout_weight =" 0.3"
21
- android : text =" Generate QR Code" />
26
+ android : text =" @string/generate_button"
27
+ android : contentDescription =" @string/generate_button_description" />
22
28
23
29
<ImageView
24
30
android : id =" @+id/imageViewQRCode"
25
31
android : layout_width =" wrap_content"
26
32
android : layout_height =" wrap_content"
27
- android : visibility =" gone" /> <!-- Initially hidden -->
33
+ android : contentDescription =" @string/image_description"
34
+ android : visibility =" gone" />
28
35
29
36
</LinearLayout >
0 commit comments