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" |
| 22 | android:layout_height="match_parent" |
Winson Chung | 1cad91e | 2011-05-25 17:41:01 -0700 | [diff] [blame^] | 23 | android:background="#FF000000"> |
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 |
| 27 | android:layout_width="wrap_content" |
| 28 | android:layout_height="@dimen/apps_customize_tab_bar_height" |
| 29 | android:layout_gravity="center_horizontal"> |
| 30 | <com.android.launcher2.FocusOnlyTabWidget |
| 31 | android:id="@android:id/tabs" |
| 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="match_parent" |
| 34 | android:layout_gravity="left" |
| 35 | android:background="@drawable/tab_unselected_holo" |
| 36 | android:tabStripEnabled="false" /> |
| 37 | <FrameLayout |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="match_parent" |
| 40 | android:layout_gravity="right"> |
| 41 | <LinearLayout |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="match_parent" |
| 44 | android:visibility="gone"> |
| 45 | <com.android.launcher2.ApplicationInfoDropTarget |
| 46 | android:id="@+id/all_apps_info_target" |
| 47 | android:layout_width="wrap_content" |
| 48 | android:layout_height="match_parent" |
| 49 | android:layout_gravity="center" |
| 50 | android:gravity="center" |
| 51 | android:drawableLeft="@drawable/ic_home_info_holo_dark" |
| 52 | android:background="@drawable/focusable_view_bg" |
| 53 | android:focusable="true" |
| 54 | android:visibility="gone" /> |
| 55 | <com.android.launcher2.DeleteZone |
| 56 | style="@style/DeleteZone" |
| 57 | android:id="@+id/all_apps_delete_zone" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="match_parent" |
| 60 | android:layout_gravity="center" |
| 61 | android:gravity="center" |
| 62 | android:background="@drawable/focusable_view_bg" |
| 63 | android:focusable="true" |
| 64 | android:visibility="gone" |
| 65 | launcher:direction="horizontal" /> |
| 66 | </LinearLayout> |
| 67 | <TextView |
| 68 | style="@style/MarketButton" |
| 69 | android:id="@+id/market_button" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="match_parent" |
| 72 | android:layout_gravity="center" |
| 73 | android:gravity="center" |
| 74 | android:background="@drawable/tab_widget_indicator_selector" |
| 75 | android:focusable="true" /> |
| 76 | </FrameLayout> |
| 77 | </FrameLayout> |
| 78 | <FrameLayout |
| 79 | android:id="@android:id/tabcontent" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="match_parent"> |
| 82 | <com.android.launcher2.AppsCustomizePagedView |
| 83 | android:id="@+id/apps_customize_pane_content" |
| 84 | android:layout_width="match_parent" |
| 85 | android:layout_height="wrap_content" |
| 86 | launcher:cellCountX="@integer/all_apps_view_cellCountX" |
| 87 | launcher:cellCountY="@integer/all_apps_view_cellCountY" |
| 88 | launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap" |
| 89 | launcher:pageLayoutHeightGap="@dimen/all_apps_view_pageLayoutHeightGap" |
| 90 | launcher:pageLayoutPaddingTop="@dimen/all_apps_view_pageLayoutPaddingTop" |
| 91 | launcher:pageLayoutPaddingBottom="@dimen/all_apps_view_pageLayoutPaddingBottom" |
| 92 | launcher:pageLayoutPaddingLeft="@dimen/all_apps_view_pageLayoutPaddingLeft" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 93 | launcher:pageLayoutPaddingRight="@dimen/all_apps_view_pageLayoutPaddingRight" |
| 94 | launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap" |
| 95 | launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap" |
| 96 | launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x" |
Winson Chung | 46af2e8 | 2011-05-09 16:00:53 -0700 | [diff] [blame] | 97 | launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" |
| 98 | launcher:wallpaperCountX="@integer/apps_customize_wallpaper_cell_count_x" |
| 99 | launcher:wallpaperCountY="@integer/apps_customize_wallpaper_cell_count_y" /> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 100 | </FrameLayout> |
| 101 | </LinearLayout> |
| 102 | </com.android.launcher2.AppsCustomizeTabHost> |