Skip to content

Commit 83aa258

Browse files
xml files fixed
1 parent cec2b84 commit 83aa258

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

app/debug/app-debug.aab

435 Bytes
Binary file not shown.

app/release/app-release.aab

690 Bytes
Binary file not shown.
+17-10
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
<?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" >
711

812
<EditText
913
android:id="@+id/editTextText"
10-
android:layout_width="16dp"
14+
android:layout_width="0dp"
1115
android:layout_height="wrap_content"
16+
android:autofillHints="name"
1217
android:layout_weight="1"
1318
android:hint="Enter text"
1419
android:inputType="text" />
1520

1621
<Button
1722
android:id="@+id/buttonGenerate"
18-
android:layout_width="18dp"
19-
android:layout_height="88dp"
23+
android:layout_width="0dp"
24+
android:layout_height="48dp"
2025
android:layout_weight="0.3"
21-
android:text="Generate QR Code" />
26+
android:text="@string/generate_button"
27+
android:contentDescription="@string/generate_button_description" />
2228

2329
<ImageView
2430
android:id="@+id/imageViewQRCode"
2531
android:layout_width="wrap_content"
2632
android:layout_height="wrap_content"
27-
android:visibility="gone"/> <!-- Initially hidden -->
33+
android:contentDescription="@string/image_description"
34+
android:visibility="gone" />
2835

2936
</LinearLayout>

app/src/main/res/values/strings.xml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
<resources>
22
<string name="app_name">ProgrammingTools</string>
3+
<string name="edit_text_hint">Enter text</string>
4+
<string name="generate_button">Generate QR Code</string>
5+
<string name="generate_button_description">Button to generate QR code</string>
6+
<string name="image_description">Image of QR Code</string>
37
</resources>

0 commit comments

Comments
 (0)