Skip to content

Commit be9021e

Browse files
committed
Fixed lint issue about button borders
1 parent 3574326 commit be9021e

File tree

2 files changed

+99
-5
lines changed

2 files changed

+99
-5
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:fillViewport="true">
6+
7+
<LinearLayout
8+
android:layout_width="match_parent"
9+
android:layout_height="wrap_content"
10+
android:focusable="true"
11+
android:focusableInTouchMode="true"
12+
android:orientation="vertical">
13+
14+
<requestFocus/>
15+
16+
<EditText
17+
android:id="@+id/edit_url"
18+
android:layout_width="0dp"
19+
android:layout_height="wrap_content"
20+
android:inputType="textUri"/>
21+
22+
<LinearLayout
23+
android:id="@+id/layout_url"
24+
android:layout_width="fill_parent"
25+
android:layout_height="wrap_content"
26+
android:orientation="horizontal">
27+
28+
<Button
29+
android:id="@+id/button_cancel"
30+
style="?android:attr/buttonBarButtonStyle"
31+
android:layout_width="wrap_content"
32+
android:layout_height="wrap_content"
33+
android:layout_weight="1"
34+
android:text="@string/button_cancel"/>
35+
36+
<Button
37+
android:id="@+id/button_run"
38+
style="?android:attr/buttonBarButtonStyle"
39+
android:layout_width="wrap_content"
40+
android:layout_height="wrap_content"
41+
android:layout_weight="1"
42+
android:text="@string/button_run"/>
43+
</LinearLayout>
44+
45+
<LinearLayout
46+
android:id="@+id/layout_headers"
47+
android:layout_width="fill_parent"
48+
android:layout_height="wrap_content"
49+
android:orientation="vertical">
50+
51+
<TextView
52+
android:layout_width="fill_parent"
53+
android:layout_height="wrap_content"
54+
android:text="@string/label_headers"/>
55+
56+
<EditText
57+
android:id="@+id/edit_headers"
58+
android:layout_width="fill_parent"
59+
android:layout_height="wrap_content"
60+
android:inputType="textMultiLine"
61+
android:minLines="3"
62+
android:singleLine="false"/>
63+
64+
</LinearLayout>
65+
66+
<LinearLayout
67+
android:id="@+id/layout_body"
68+
android:layout_width="fill_parent"
69+
android:layout_height="wrap_content"
70+
android:orientation="vertical">
71+
72+
<TextView
73+
android:layout_width="fill_parent"
74+
android:layout_height="wrap_content"
75+
android:text="@string/label_req_body"/>
76+
77+
<EditText
78+
android:id="@+id/edit_body"
79+
android:layout_width="fill_parent"
80+
android:layout_height="wrap_content"
81+
android:inputType="textMultiLine"
82+
android:minLines="3"
83+
android:singleLine="false"/>
84+
85+
</LinearLayout>
86+
87+
<LinearLayout
88+
android:id="@+id/layout_response"
89+
android:layout_width="fill_parent"
90+
android:layout_height="wrap_content"
91+
android:orientation="vertical"/>
92+
93+
</LinearLayout>
94+
</ScrollView>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
android:inputType="textUri"/>
2828

2929
<Button
30-
android:id="@+id/button_cancel"
30+
android:id="@+id/button_run"
3131
android:layout_width="wrap_content"
3232
android:layout_height="wrap_content"
33-
android:visibility="gone"
34-
android:text="@string/button_cancel"/>
33+
android:text="@string/button_run"/>
3534

3635
<Button
37-
android:id="@+id/button_run"
36+
android:id="@+id/button_cancel"
3837
android:layout_width="wrap_content"
3938
android:layout_height="wrap_content"
40-
android:text="@string/button_run"/>
39+
android:visibility="gone"
40+
android:text="@string/button_cancel"/>
4141
</LinearLayout>
4242

4343
<LinearLayout

0 commit comments

Comments
 (0)