Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93e194a

Browse files
committed
Removed hardcoded strings
1 parent 626af08 commit 93e194a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

sample/src/main/res/layout/parent_layout.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
android:id="@+id/button_run"
3131
android:layout_width="wrap_content"
3232
android:layout_height="wrap_content"
33-
android:text="Run" />
33+
android:text="@string/button_run" />
3434
</LinearLayout>
3535

3636
<LinearLayout
@@ -42,7 +42,7 @@
4242
<TextView
4343
android:layout_width="fill_parent"
4444
android:layout_height="wrap_content"
45-
android:text="Headers (key=val, one per line)" />
45+
android:text="@string/label_headers" />
4646

4747
<EditText
4848
android:id="@+id/edit_headers"
@@ -63,7 +63,7 @@
6363
<TextView
6464
android:layout_width="fill_parent"
6565
android:layout_height="wrap_content"
66-
android:text="Request body" />
66+
android:text="@string/label_req_body" />
6767

6868
<EditText
6969
android:id="@+id/edit_body"

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

+3
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
<string name="title_delete_sample">DELETE</string>
1010
<string name="title_file_sample">GET to File</string>
1111
<string name="title_binary_sample">GET binary data</string>
12+
<string name="button_run">Run</string>
13+
<string name="label_headers">Headers (key=val, one per line)</string>
14+
<string name="label_req_body">Request body</string>
1215
</resources>

0 commit comments

Comments
 (0)