Skip to content

Commit

Permalink
Fixed lint issue about button borders
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek committed Mar 20, 2014
1 parent 3574326 commit be9021e
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 5 deletions.
94 changes: 94 additions & 0 deletions sample/src/main/res/layout-v14/parent_layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">

<requestFocus/>

<EditText
android:id="@+id/edit_url"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:inputType="textUri"/>

<LinearLayout
android:id="@+id/layout_url"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<Button
android:id="@+id/button_cancel"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/button_cancel"/>

<Button
android:id="@+id/button_run"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/button_run"/>
</LinearLayout>

<LinearLayout
android:id="@+id/layout_headers"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/label_headers"/>

<EditText
android:id="@+id/edit_headers"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:minLines="3"
android:singleLine="false"/>

</LinearLayout>

<LinearLayout
android:id="@+id/layout_body"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/label_req_body"/>

<EditText
android:id="@+id/edit_body"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:minLines="3"
android:singleLine="false"/>

</LinearLayout>

<LinearLayout
android:id="@+id/layout_response"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>

</LinearLayout>
</ScrollView>
10 changes: 5 additions & 5 deletions sample/src/main/res/layout/parent_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
android:inputType="textUri"/>

<Button
android:id="@+id/button_cancel"
android:id="@+id/button_run"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="@string/button_cancel"/>
android:text="@string/button_run"/>

<Button
android:id="@+id/button_run"
android:id="@+id/button_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_run"/>
android:visibility="gone"
android:text="@string/button_cancel"/>
</LinearLayout>

<LinearLayout
Expand Down

0 comments on commit be9021e

Please sign in to comment.