blob: 05e7fc124e9a283c0ae0129907a499927a89b4d4 [file] [log] [blame]
Winson Chung785d2eb2011-04-14 16:08:02 -07001<?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 Jurka7bdb25a2011-08-03 15:16:44 -070018 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
19 android:background="#FF000000">
Winson Chung785d2eb2011-04-14 16:08:02 -070020 <LinearLayout
21 android:orientation="vertical"
22 android:layout_width="match_parent"
Winson Chungb26f3d62011-06-02 10:49:29 -070023 android:layout_height="match_parent">
Winson Chung785d2eb2011-04-14 16:08:02 -070024 <!-- 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 Chungfd3385f2011-06-15 19:51:24 -070027 android:id="@+id/tabs_container"
Winson Chung785d2eb2011-04-14 16:08:02 -070028 android:layout_width="wrap_content"
Winson Chung557d6ed2011-07-08 15:34:52 -070029 android:layout_height="@dimen/apps_customize_tab_bar_height"
Winson Chung785d2eb2011-04-14 16:08:02 -070030 android:layout_gravity="center_horizontal">
31 <com.android.launcher2.FocusOnlyTabWidget
32 android:id="@android:id/tabs"
Winson Chungf0ea4d32011-06-06 14:27:16 -070033 android:layout_width="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070034 android:layout_height="match_parent"
35 android:layout_gravity="left"
36 android:background="@drawable/tab_unselected_holo"
37 android:tabStripEnabled="false" />
Winson Chungc100e8e2011-08-09 16:02:43 -070038 <include
Winson Chungf0ea4d32011-06-06 14:27:16 -070039 android:id="@+id/market_button"
Winson Chungc100e8e2011-08-09 16:02:43 -070040 layout="@layout/market_button"
Winson Chung785d2eb2011-04-14 16:08:02 -070041 android:layout_width="wrap_content"
42 android:layout_height="match_parent"
Winson Chungc100e8e2011-08-09 16:02:43 -070043 android:layout_gravity="right" />
Winson Chung785d2eb2011-04-14 16:08:02 -070044 </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 Chungf0ea4d32011-06-06 14:27:16 -070052 android:layout_height="match_parent"
Winson Chung557d6ed2011-07-08 15:34:52 -070053 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 Chung4b576be2011-04-27 17:40:20 -070061 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 Chungdb1138b2011-06-30 14:39:35 -070064 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y"
65 launcher:maxGap="@dimen/workspace_max_gap" />
Winson Chung649723c2011-07-06 20:41:23 -070066
67 <include
Winson Chung007c6982011-06-14 13:27:53 -070068 android:id="@+id/paged_view_indicator"
Winson Chung649723c2011-07-06 20:41:23 -070069 layout="@layout/scroll_indicator"
Winson Chung007c6982011-06-14 13:27:53 -070070 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
Winson Chung649723c2011-07-06 20:41:23 -070072 android:layout_gravity="bottom" />
Winson Chung785d2eb2011-04-14 16:08:02 -070073 </FrameLayout>
74 </LinearLayout>
75</com.android.launcher2.AppsCustomizeTabHost>