|
2 | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 | 3 | android:layout_width="match_parent"
|
4 | 4 | android:layout_height="match_parent"
|
| 5 | + android:descendantFocusability="blocksDescendants" |
5 | 6 | android:orientation="vertical" >
|
6 | 7 |
|
7 | 8 | <!--
|
|
27 | 28 | android:id="@+id/mainSettingItem1"
|
28 | 29 | android:layout_width="wrap_content"
|
29 | 30 | android:layout_height="wrap_content"
|
30 |
| - android:layout_marginBottom="20dp" |
31 | 31 | android:layout_alignParentLeft="true"
|
32 | 32 | android:layout_alignParentTop="true"
|
33 |
| - android:textSize="20sp" |
34 |
| - android:text="item1" /> |
| 33 | + android:layout_marginBottom="5dp" |
| 34 | + android:layout_toLeftOf="@+id/settingRowHelpButton" |
| 35 | + android:text="" |
| 36 | + android:textSize="20sp" /> |
35 | 37 |
|
36 | 38 | <TextView
|
37 | 39 | android:id="@+id/mainSettingItem2"
|
38 | 40 | android:layout_width="wrap_content"
|
39 | 41 | android:layout_height="wrap_content"
|
40 |
| - android:layout_marginBottom="20dp" |
| 42 | + android:layout_alignParentLeft="true" |
| 43 | + android:layout_alignRight="@+id/mainSettingItem1" |
| 44 | + android:layout_below="@+id/mainSettingItem1" |
| 45 | + android:textSize="20sp" /> |
| 46 | + |
| 47 | + <ImageButton |
| 48 | + android:id="@+id/settingRowHelpButton" |
| 49 | + android:layout_width="wrap_content" |
| 50 | + android:layout_height="wrap_content" |
| 51 | + android:layout_alignBottom="@+id/mainSettingItem2" |
41 | 52 | android:layout_alignParentRight="true"
|
42 | 53 | android:layout_alignParentTop="true"
|
43 |
| - android:textSize="20sp" |
44 |
| - android:text="item2" /> |
| 54 | + android:paddingRight="10dp" |
| 55 | + android:paddingLeft="10dp" |
| 56 | + android:layout_marginRight="10dp" |
| 57 | + android:onClick="settingRowHelpButtonClicked" |
| 58 | + android:background="?android:selectableItemBackground" |
| 59 | + android:contentDescription="@string/help_button_desc" |
| 60 | + android:src="@drawable/help_icon" /> |
45 | 61 |
|
46 | 62 | </RelativeLayout>
|
0 commit comments