|
14 | 14 | android:layout_width="fill_parent" |
15 | 15 | android:layout_height="@dimen/format_bar_height" |
16 | 16 | android:layout_gravity="bottom" |
17 | | - android:background="@color/format_bar_background" |
18 | | - android:orientation="horizontal"> |
| 17 | + android:background="@android:color/white" |
| 18 | + android:orientation="vertical"> |
19 | 19 |
|
20 | | - <HorizontalScrollView |
21 | | - android:layout_width="0dp" |
22 | | - android:layout_height="wrap_content" |
23 | | - android:layout_weight="1"> |
| 20 | + <View |
| 21 | + android:id="@+id/format_bar_horizontal_divider" |
| 22 | + android:layout_width="fill_parent" |
| 23 | + android:layout_height="@dimen/format_bar_horizontal_divider_height" |
| 24 | + style="@style/Divider"/> |
24 | 25 |
|
25 | | - <LinearLayout |
26 | | - android:layout_width="wrap_content" |
| 26 | + <LinearLayout |
| 27 | + android:id="@+id/format_bar_buttons" |
| 28 | + android:layout_width="fill_parent" |
| 29 | + android:layout_height="@dimen/format_bar_height" |
| 30 | + android:layout_gravity="bottom" |
| 31 | + android:layout_marginLeft="@dimen/format_bar_side_margin" |
| 32 | + android:layout_marginRight="@dimen/format_bar_side_margin" |
| 33 | + android:orientation="horizontal"> |
| 34 | + |
| 35 | + <HorizontalScrollView |
| 36 | + android:layout_width="0dp" |
27 | 37 | android:layout_height="wrap_content" |
28 | | - android:orientation="horizontal"> |
| 38 | + android:layout_weight="1"> |
29 | 39 |
|
30 | | - <ToggleButton |
31 | | - android:id="@+id/bold" |
32 | | - style="@style/ToggleButton" |
| 40 | + <LinearLayout |
33 | 41 | android:layout_width="wrap_content" |
34 | | - android:layout_height="fill_parent" |
35 | | - android:background="@drawable/format_bar_button_bold_selector" /> |
36 | | - </LinearLayout> |
37 | | - </HorizontalScrollView> |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:orientation="horizontal"> |
| 44 | + |
| 45 | + <ToggleButton |
| 46 | + android:id="@+id/format_bar_button_media" |
| 47 | + style="@style/FormatBarButton" |
| 48 | + android:layout_width="wrap_content" |
| 49 | + android:layout_height="fill_parent" |
| 50 | + android:background="@drawable/format_bar_button_media_selector"/> |
| 51 | + |
| 52 | + <ToggleButton |
| 53 | + android:id="@+id/format_bar_button_bold" |
| 54 | + style="@style/FormatBarButton" |
| 55 | + android:layout_width="wrap_content" |
| 56 | + android:layout_height="fill_parent" |
| 57 | + android:background="@drawable/format_bar_button_bold_selector"/> |
| 58 | + |
| 59 | + <ToggleButton |
| 60 | + android:id="@+id/format_bar_button_italic" |
| 61 | + style="@style/FormatBarButton" |
| 62 | + android:layout_width="wrap_content" |
| 63 | + android:layout_height="fill_parent" |
| 64 | + android:background="@drawable/format_bar_button_italic_selector"/> |
| 65 | + |
| 66 | + <ToggleButton |
| 67 | + android:id="@+id/format_bar_button_quote" |
| 68 | + style="@style/FormatBarButton" |
| 69 | + android:layout_width="wrap_content" |
| 70 | + android:layout_height="fill_parent" |
| 71 | + android:background="@drawable/format_bar_button_quote_selector"/> |
| 72 | + |
| 73 | + <ToggleButton |
| 74 | + android:id="@+id/format_bar_button_ul" |
| 75 | + style="@style/FormatBarButton" |
| 76 | + android:layout_width="wrap_content" |
| 77 | + android:layout_height="fill_parent" |
| 78 | + android:background="@drawable/format_bar_button_ul_selector"/> |
| 79 | + |
| 80 | + <ToggleButton |
| 81 | + android:id="@+id/format_bar_button_ol" |
| 82 | + style="@style/FormatBarButton" |
| 83 | + android:layout_width="wrap_content" |
| 84 | + android:layout_height="fill_parent" |
| 85 | + android:background="@drawable/format_bar_button_ol_selector"/> |
| 86 | + |
| 87 | + <ToggleButton |
| 88 | + android:id="@+id/format_bar_button_link" |
| 89 | + style="@style/FormatBarButton" |
| 90 | + android:layout_width="wrap_content" |
| 91 | + android:layout_height="fill_parent" |
| 92 | + android:background="@drawable/format_bar_button_link_selector"/> |
| 93 | + </LinearLayout> |
| 94 | + </HorizontalScrollView> |
| 95 | + |
| 96 | + <View |
| 97 | + android:id="@+id/format_bar_vertical_divider" |
| 98 | + android:layout_width="@dimen/format_bar_vertical_divider_width" |
| 99 | + android:layout_height="@dimen/format_bar_vertical_divider_height" |
| 100 | + android:layout_gravity="center" |
| 101 | + style="@style/Divider"/> |
| 102 | + |
| 103 | + <ToggleButton |
| 104 | + android:id="@+id/format_bar_button_html" |
| 105 | + style="@style/FormatBarHtmlButton" |
| 106 | + android:layout_width="wrap_content" |
| 107 | + android:layout_height="fill_parent" |
| 108 | + android:background="@drawable/format_bar_button_html_selector"/> |
| 109 | + </LinearLayout> |
38 | 110 | </LinearLayout> |
39 | 111 |
|
40 | 112 | </FrameLayout> |
0 commit comments