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" |
Michael Jurka | 7bdb25a | 2011-08-03 15:16:44 -0700 | [diff] [blame] | 18 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
| 19 | android:background="#FF000000"> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 20 | <LinearLayout |
| 21 | android:orientation="vertical" |
| 22 | android:layout_width="match_parent" |
Winson Chung | b26f3d6 | 2011-06-02 10:49:29 -0700 | [diff] [blame] | 23 | android:layout_height="match_parent"> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 24 | <!-- The layout_width of the tab bar gets overriden to align the content |
| 25 | with the text in the tabs in AppsCustomizeTabHost. --> |
| 26 | <FrameLayout |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 27 | android:id="@+id/tabs_container" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 28 | android:layout_width="wrap_content" |
Winson Chung | 557d6ed | 2011-07-08 15:34:52 -0700 | [diff] [blame] | 29 | android:layout_height="@dimen/apps_customize_tab_bar_height" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 30 | android:layout_gravity="center_horizontal"> |
| 31 | <com.android.launcher2.FocusOnlyTabWidget |
| 32 | android:id="@android:id/tabs" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 34 | android:layout_height="match_parent" |
| 35 | android:layout_gravity="left" |
| 36 | android:background="@drawable/tab_unselected_holo" |
| 37 | android:tabStripEnabled="false" /> |
Winson Chung | c100e8e | 2011-08-09 16:02:43 -0700 | [diff] [blame] | 38 | <include |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 39 | android:id="@+id/market_button" |
Winson Chung | c100e8e | 2011-08-09 16:02:43 -0700 | [diff] [blame] | 40 | layout="@layout/market_button" |
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 | c100e8e | 2011-08-09 16:02:43 -0700 | [diff] [blame] | 43 | android:layout_gravity="right" /> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 44 | </FrameLayout> |
| 45 | <FrameLayout |
| 46 | android:id="@android:id/tabcontent" |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="match_parent"> |
| 49 | <com.android.launcher2.AppsCustomizePagedView |
| 50 | android:id="@+id/apps_customize_pane_content" |
| 51 | android:layout_width="match_parent" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 52 | android:layout_height="match_parent" |
Winson Chung | 557d6ed | 2011-07-08 15:34:52 -0700 | [diff] [blame] | 53 | launcher:cellCountX="@integer/apps_customize_cellCountX" |
| 54 | launcher:cellCountY="@integer/apps_customize_cellCountY" |
| 55 | launcher:pageLayoutWidthGap="@dimen/apps_customize_pageLayoutWidthGap" |
| 56 | launcher:pageLayoutHeightGap="@dimen/apps_customize_pageLayoutHeightGap" |
| 57 | launcher:pageLayoutPaddingTop="@dimen/apps_customize_pageLayoutPaddingTop" |
| 58 | launcher:pageLayoutPaddingBottom="@dimen/apps_customize_pageLayoutPaddingBottom" |
| 59 | launcher:pageLayoutPaddingLeft="@dimen/apps_customize_pageLayoutPaddingLeft" |
| 60 | launcher:pageLayoutPaddingRight="@dimen/apps_customize_pageLayoutPaddingRight" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 61 | launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap" |
| 62 | launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap" |
| 63 | launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x" |
Winson Chung | db1138b | 2011-06-30 14:39:35 -0700 | [diff] [blame] | 64 | launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" |
| 65 | launcher:maxGap="@dimen/workspace_max_gap" /> |
Winson Chung | f314b0e | 2011-08-16 11:54:27 -0700 | [diff] [blame] | 66 | <ImageView |
| 67 | android:id="@+id/animation_buffer" |
| 68 | android:layout_width="match_parent" |
| 69 | android:layout_height="match_parent" |
| 70 | android:visibility="gone" /> |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 71 | |
| 72 | <include |
Winson Chung | 007c698 | 2011-06-14 13:27:53 -0700 | [diff] [blame] | 73 | android:id="@+id/paged_view_indicator" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 74 | layout="@layout/scroll_indicator" |
Winson Chung | 007c698 | 2011-06-14 13:27:53 -0700 | [diff] [blame] | 75 | android:layout_width="wrap_content" |
| 76 | android:layout_height="wrap_content" |
Winson Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 77 | android:layout_gravity="bottom" /> |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 78 | </FrameLayout> |
| 79 | </LinearLayout> |
| 80 | |
| 81 | <include layout="@layout/all_apps_cling" |
| 82 | android:id="@+id/all_apps_cling" |
| 83 | android:layout_width="match_parent" |
| 84 | android:layout_height="match_parent" |
| 85 | android:visibility="gone" /> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 86 | </com.android.launcher2.AppsCustomizeTabHost> |