blob: aaca6952dedaba081b1b89476156299e09acbde5 [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 Chung6032e7e2011-11-08 15:47:17 -080053 launcher:maxAppCellCountX="@integer/apps_customize_maxCellCountX"
54 launcher:maxAppCellCountY="@integer/apps_customize_maxCellCountY"
Winson Chung557d6ed2011-07-08 15:34:52 -070055 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"
Winson Chung7d7541e2011-09-16 20:14:36 -070065 launcher:clingFocusedX="@integer/apps_customize_cling_focused_x"
66 launcher:clingFocusedY="@integer/apps_customize_cling_focused_y"
Winson Chungdb1138b2011-06-30 14:39:35 -070067 launcher:maxGap="@dimen/workspace_max_gap" />
Winson Chungf314b0e2011-08-16 11:54:27 -070068 <ImageView
69 android:id="@+id/animation_buffer"
70 android:layout_width="match_parent"
71 android:layout_height="match_parent"
72 android:visibility="gone" />
Winson Chung649723c2011-07-06 20:41:23 -070073
74 <include
Winson Chung007c6982011-06-14 13:27:53 -070075 android:id="@+id/paged_view_indicator"
Winson Chung649723c2011-07-06 20:41:23 -070076 layout="@layout/scroll_indicator"
Winson Chung007c6982011-06-14 13:27:53 -070077 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
Winson Chung649723c2011-07-06 20:41:23 -070079 android:layout_gravity="bottom" />
Winson Chung82f55532011-08-09 14:14:23 -070080 </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" />
Winson Chung785d2eb2011-04-14 16:08:02 -070088</com.android.launcher2.AppsCustomizeTabHost>