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.launcher3.AppsCustomizeTabHost 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" 19 android:background="#80FFFFFF"> 20 <LinearLayout 21 android:id="@+id/apps_customize_content" 22 android:orientation="vertical" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:visibility="gone"> 26 <!-- The layout_width of the tab bar gets overriden to align the content 27 with the text in the tabs in AppsCustomizeTabHost. --> 28 <FrameLayout 29 android:id="@+id/tabs_container" 30 android:layout_width="wrap_content" 31 android:layout_height="@dimen/apps_customize_tab_bar_height" 32 android:layout_marginTop="@dimen/apps_customize_tab_bar_margin_top" 33 android:layout_gravity="center_horizontal" 34 android:visibility="gone"> 35 <com.android.launcher3.FocusOnlyTabWidget 36 android:id="@android:id/tabs" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:layout_gravity="center" 40 android:gravity="start" 41 android:background="@drawable/tab_unselected_holo" 42 android:tabStripEnabled="false" 43 android:divider="@null" /> 44 <include 45 android:id="@+id/market_button" 46 layout="@layout/market_button" 47 android:layout_width="wrap_content" 48 android:layout_height="match_parent" 49 android:layout_gravity="end" /> 50 </FrameLayout> 51 <FrameLayout 52 android:id="@android:id/tabcontent" 53 android:layout_width="match_parent" 54 android:layout_height="match_parent"> 55 <com.android.launcher3.AppsCustomizePagedView 56 android:id="@+id/apps_customize_pane_content" 57 android:layout_width="match_parent" 58 android:layout_height="match_parent" 59 launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x" 60 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" 61 launcher:clingFocusedX="@integer/apps_customize_cling_focused_x" 62 launcher:clingFocusedY="@integer/apps_customize_cling_focused_y" 63 launcher:maxGap="@dimen/workspace_max_gap" 64 launcher:pageIndicator="@+id/apps_customize_page_indicator" /> 65 <FrameLayout 66 android:id="@+id/animation_buffer" 67 android:layout_width="match_parent" 68 android:layout_height="match_parent" 69 android:background="#FF000000" 70 android:visibility="gone" /> 71 <include 72 android:id="@+id/apps_customize_page_indicator" 73 layout="@layout/page_indicator" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_gravity="center_horizontal|bottom" /> 77 </FrameLayout> 78 </LinearLayout> 79 </com.android.launcher3.AppsCustomizeTabHost> 80