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 android:background="#FF000000"> 20 <LinearLayout 21 android:orientation="vertical" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent"> 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:id="@+id/tabs_container" 28 android:layout_width="wrap_content" 29 android:layout_height="@dimen/apps_customize_tab_bar_height" 30 android:layout_gravity="center_horizontal"> 31 <com.android.launcher2.FocusOnlyTabWidget 32 android:id="@android:id/tabs" 33 android:layout_width="match_parent" 34 android:layout_height="match_parent" 35 android:layout_gravity="left" 36 android:background="@drawable/tab_unselected_holo" 37 android:tabStripEnabled="false" /> 38 <include 39 android:id="@+id/market_button" 40 layout="@layout/market_button" 41 android:layout_width="wrap_content" 42 android:layout_height="match_parent" 43 android:layout_gravity="right" /> 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" 52 android:layout_height="match_parent" 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" 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" 64 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" 65 launcher:clingFocusedX="@integer/apps_customize_cling_focused_x" 66 launcher:clingFocusedY="@integer/apps_customize_cling_focused_y" 67 launcher:maxGap="@dimen/workspace_max_gap" /> 68 <ImageView 69 android:id="@+id/animation_buffer" 70 android:layout_width="match_parent" 71 android:layout_height="match_parent" 72 android:visibility="gone" /> 73 74 <include 75 android:id="@+id/paged_view_indicator" 76 layout="@layout/scroll_indicator" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_gravity="bottom" /> 80 </FrameLayout> 81 </LinearLayout> 82 83 <include layout="@layout/all_apps_cling" 84 android:id="@+id/all_apps_cling" 85 android:layout_width="match_parent" 86 android:layout_height="match_parent" 87 android:visibility="gone" /> 88 </com.android.launcher2.AppsCustomizeTabHost> 89