blob: a9d7dededecd28f68d3b20c93a53df3883a946b8 [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
Michael Jurka1899a362011-11-03 13:50:45 -070021 android:id="@+id/apps_customize_content"
Winson Chung785d2eb2011-04-14 16:08:02 -070022 android:orientation="vertical"
23 android:layout_width="match_parent"
Michael Jurka1899a362011-11-03 13:50:45 -070024 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080025 android:visibility="gone">
Winson Chung785d2eb2011-04-14 16:08:02 -070026 <!-- The layout_width of the tab bar gets overriden to align the content
27 with the text in the tabs in AppsCustomizeTabHost. -->
28 <FrameLayout
Winson Chungfd3385f2011-06-15 19:51:24 -070029 android:id="@+id/tabs_container"
Winson Chung785d2eb2011-04-14 16:08:02 -070030 android:layout_width="wrap_content"
Winson Chung557d6ed2011-07-08 15:34:52 -070031 android:layout_height="@dimen/apps_customize_tab_bar_height"
Winson Chung8ea7f6b2011-11-14 15:17:47 -080032 android:layout_marginTop="@dimen/apps_customize_tab_bar_margin_top"
Winson Chung785d2eb2011-04-14 16:08:02 -070033 android:layout_gravity="center_horizontal">
34 <com.android.launcher2.FocusOnlyTabWidget
35 android:id="@android:id/tabs"
Winson Chungf0ea4d32011-06-06 14:27:16 -070036 android:layout_width="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070037 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080038 android:layout_gravity="center"
39 android:gravity="start"
Winson Chung785d2eb2011-04-14 16:08:02 -070040 android:background="@drawable/tab_unselected_holo"
Winson Chung8ea7f6b2011-11-14 15:17:47 -080041 android:tabStripEnabled="false"
42 android:divider="@null" />
Winson Chungc100e8e2011-08-09 16:02:43 -070043 <include
Winson Chungf0ea4d32011-06-06 14:27:16 -070044 android:id="@+id/market_button"
Winson Chungc100e8e2011-08-09 16:02:43 -070045 layout="@layout/market_button"
Winson Chung785d2eb2011-04-14 16:08:02 -070046 android:layout_width="wrap_content"
47 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080048 android:layout_gravity="end" />
Winson Chung785d2eb2011-04-14 16:08:02 -070049 </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"
Winson Chungf0ea4d32011-06-06 14:27:16 -070057 android:layout_height="match_parent"
Winson Chung6032e7e2011-11-08 15:47:17 -080058 launcher:maxAppCellCountX="@integer/apps_customize_maxCellCountX"
59 launcher:maxAppCellCountY="@integer/apps_customize_maxCellCountY"
Winson Chung557d6ed2011-07-08 15:34:52 -070060 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"
Winson Chung4b576be2011-04-27 17:40:20 -070066 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"
Winson Chungdb1138b2011-06-30 14:39:35 -070069 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y"
Winson Chung7d7541e2011-09-16 20:14:36 -070070 launcher:clingFocusedX="@integer/apps_customize_cling_focused_x"
71 launcher:clingFocusedY="@integer/apps_customize_cling_focused_y"
Winson Chungdb1138b2011-06-30 14:39:35 -070072 launcher:maxGap="@dimen/workspace_max_gap" />
Michael Jurka141dbd02011-11-03 13:50:45 -070073 <FrameLayout
Winson Chungf314b0e2011-08-16 11:54:27 -070074 android:id="@+id/animation_buffer"
75 android:layout_width="match_parent"
76 android:layout_height="match_parent"
Michael Jurka141dbd02011-11-03 13:50:45 -070077 android:background="#FF000000"
Winson Chungf314b0e2011-08-16 11:54:27 -070078 android:visibility="gone" />
Winson Chung649723c2011-07-06 20:41:23 -070079
80 <include
Winson Chung007c6982011-06-14 13:27:53 -070081 android:id="@+id/paged_view_indicator"
Winson Chung649723c2011-07-06 20:41:23 -070082 layout="@layout/scroll_indicator"
Winson Chung007c6982011-06-14 13:27:53 -070083 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
Winson Chung649723c2011-07-06 20:41:23 -070085 android:layout_gravity="bottom" />
Winson Chung82f55532011-08-09 14:14:23 -070086 </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" />
Winson Chung785d2eb2011-04-14 16:08:02 -070094</com.android.launcher2.AppsCustomizeTabHost>