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: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            <com.android.launcher2.FocusOnlyTabWidget
35                android:id="@android:id/tabs"
36                android:layout_width="match_parent"
37                android:layout_height="match_parent"
38                android:layout_gravity="center"
39                android:gravity="start"
40                android:background="@drawable/tab_unselected_holo"
41                android:tabStripEnabled="false"
42                android:divider="@null" />
43            <include
44                android:id="@+id/market_button"
45                layout="@layout/market_button"
46                android:layout_width="wrap_content"
47                android:layout_height="match_parent"
48                android:layout_gravity="end" />
49        </FrameLayout>
50        <FrameLayout
51            android:id="@android:id/tabcontent"
52            android:layout_width="match_parent"
53            android:layout_height="match_parent">
54            <com.android.launcher2.AppsCustomizePagedView
55                android:id="@+id/apps_customize_pane_content"
56                android:layout_width="match_parent"
57                android:layout_height="match_parent"
58                launcher:maxAppCellCountX="@integer/apps_customize_maxCellCountX"
59                launcher:maxAppCellCountY="@integer/apps_customize_maxCellCountY"
60                launcher:pageLayoutWidthGap="@dimen/apps_customize_pageLayoutWidthGap"
61                launcher:pageLayoutHeightGap="@dimen/apps_customize_pageLayoutHeightGap"
62                launcher:pageLayoutPaddingTop="@dimen/apps_customize_pageLayoutPaddingTop"
63                launcher:pageLayoutPaddingBottom="@dimen/apps_customize_pageLayoutPaddingBottom"
64                launcher:pageLayoutPaddingLeft="@dimen/apps_customize_pageLayoutPaddingLeft"
65                launcher:pageLayoutPaddingRight="@dimen/apps_customize_pageLayoutPaddingRight"
66                launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap"
67                launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap"
68                launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x"
69                launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y"
70                launcher:clingFocusedX="@integer/apps_customize_cling_focused_x"
71                launcher:clingFocusedY="@integer/apps_customize_cling_focused_y"
72                launcher:maxGap="@dimen/workspace_max_gap" />
73            <FrameLayout
74                android:id="@+id/animation_buffer"
75                android:layout_width="match_parent"
76                android:layout_height="match_parent"
77                android:background="#FF000000"
78                android:visibility="gone" />
79
80            <include
81                android:id="@+id/paged_view_indicator"
82                layout="@layout/scroll_indicator"
83                android:layout_width="wrap_content"
84                android:layout_height="wrap_content"
85                android:layout_gravity="bottom" />
86        </FrameLayout>
87    </LinearLayout>
88
89    <include layout="@layout/all_apps_cling"
90        android:id="@+id/all_apps_cling"
91        android:layout_width="match_parent"
92        android:layout_height="match_parent"
93        android:visibility="gone" />
94</com.android.launcher2.AppsCustomizeTabHost>
95