Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <com.android.launcher2.AppsCustomizeTabHost |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"> |
| 19 | <LinearLayout |
| 20 | android:orientation="vertical" |
| 21 | android:layout_width="match_parent" |
Winson Chung | b26f3d6 | 2011-06-02 10:49:29 -0700 | [diff] [blame] | 22 | android:layout_height="match_parent"> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 23 | <!-- The layout_width of the tab bar gets overriden to align the content |
| 24 | with the text in the tabs in AppsCustomizeTabHost. --> |
| 25 | <FrameLayout |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 26 | android:id="@+id/tabs_container" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 27 | android:layout_width="wrap_content" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 28 | android:layout_height="@dimen/qsb_bar_height" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 29 | android:layout_gravity="center_horizontal"> |
| 30 | <com.android.launcher2.FocusOnlyTabWidget |
| 31 | android:id="@android:id/tabs" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 32 | android:layout_width="match_parent" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 33 | android:layout_height="match_parent" |
| 34 | android:layout_gravity="left" |
| 35 | android:background="@drawable/tab_unselected_holo" |
| 36 | android:tabStripEnabled="false" /> |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 37 | <TextView |
| 38 | style="@style/MarketButton" |
| 39 | android:id="@+id/market_button" |
| 40 | android:onClick="onClickAppMarketButton" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="match_parent" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 43 | android:layout_gravity="right" |
| 44 | android:gravity="center" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 45 | android:paddingLeft="@dimen/toolbar_button_horizontal_padding" |
| 46 | android:paddingRight="@dimen/toolbar_button_horizontal_padding" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 47 | android:text="@string/market" |
Winson Chung | 6a0f57d | 2011-06-29 20:10:49 -0700 | [diff] [blame] | 48 | android:contentDescription="@string/market" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 49 | android:textColor="@color/workspace_all_apps_and_delete_zone_text_color" |
| 50 | android:textSize="18sp" |
| 51 | android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color" |
| 52 | android:shadowDx="0.0" |
| 53 | android:shadowDy="0.0" |
| 54 | android:shadowRadius="2.0" |
| 55 | android:background="@drawable/tab_widget_indicator_selector" |
| 56 | android:focusable="true" |
| 57 | android:clickable="true" /> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 58 | </FrameLayout> |
| 59 | <FrameLayout |
| 60 | android:id="@android:id/tabcontent" |
| 61 | android:layout_width="match_parent" |
| 62 | android:layout_height="match_parent"> |
| 63 | <com.android.launcher2.AppsCustomizePagedView |
| 64 | android:id="@+id/apps_customize_pane_content" |
| 65 | android:layout_width="match_parent" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 66 | android:layout_height="match_parent" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 67 | launcher:cellCountX="@integer/all_apps_view_cellCountX" |
| 68 | launcher:cellCountY="@integer/all_apps_view_cellCountY" |
| 69 | launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap" |
| 70 | launcher:pageLayoutHeightGap="@dimen/all_apps_view_pageLayoutHeightGap" |
| 71 | launcher:pageLayoutPaddingTop="@dimen/all_apps_view_pageLayoutPaddingTop" |
| 72 | launcher:pageLayoutPaddingBottom="@dimen/all_apps_view_pageLayoutPaddingBottom" |
| 73 | launcher:pageLayoutPaddingLeft="@dimen/all_apps_view_pageLayoutPaddingLeft" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 74 | launcher:pageLayoutPaddingRight="@dimen/all_apps_view_pageLayoutPaddingRight" |
| 75 | launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap" |
| 76 | launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap" |
| 77 | launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x" |
Winson Chung | db1138b | 2011-06-30 14:39:35 -0700 | [diff] [blame] | 78 | launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" |
| 79 | launcher:maxGap="@dimen/workspace_max_gap" /> |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 80 | |
| 81 | <include |
Winson Chung | eb99f16 | 2011-07-07 15:29:54 -0700 | [diff] [blame] | 82 | style="@style/AppsCustomizeScrollTrack" |
Winson Chung | 3ac74c5 | 2011-06-30 17:39:37 -0700 | [diff] [blame] | 83 | android:id="@+id/paged_view_indicator_track" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 84 | layout="@layout/scroll_indicator_track" |
Winson Chung | 3ac74c5 | 2011-06-30 17:39:37 -0700 | [diff] [blame] | 85 | android:layout_width="match_parent" |
| 86 | android:layout_height="wrap_content" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 87 | android:layout_gravity="bottom" /> |
| 88 | <include |
Winson Chung | 007c698 | 2011-06-14 13:27:53 -0700 | [diff] [blame] | 89 | android:id="@+id/paged_view_indicator" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 90 | layout="@layout/scroll_indicator" |
Winson Chung | 007c698 | 2011-06-14 13:27:53 -0700 | [diff] [blame] | 91 | android:layout_width="wrap_content" |
| 92 | android:layout_height="wrap_content" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 93 | android:layout_gravity="bottom" /> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 94 | </FrameLayout> |
| 95 | </LinearLayout> |
| 96 | </com.android.launcher2.AppsCustomizeTabHost> |