blob: f3ecb48241d5fe0eabb8ab8170cb936502a918c9 [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"
18 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
Winson Chungb26f3d62011-06-02 10:49:29 -070019 <com.android.launcher2.AllAppsBackground
20 android:id="@+id/all_apps_background"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent" />
Winson Chung785d2eb2011-04-14 16:08:02 -070023 <LinearLayout
24 android:orientation="vertical"
25 android:layout_width="match_parent"
Winson Chungb26f3d62011-06-02 10:49:29 -070026 android:layout_height="match_parent">
Winson Chung785d2eb2011-04-14 16:08:02 -070027 <!-- The layout_width of the tab bar gets overriden to align the content
28 with the text in the tabs in AppsCustomizeTabHost. -->
29 <FrameLayout
30 android:layout_width="wrap_content"
31 android:layout_height="@dimen/apps_customize_tab_bar_height"
32 android:layout_gravity="center_horizontal">
33 <com.android.launcher2.FocusOnlyTabWidget
34 android:id="@android:id/tabs"
35 android:layout_width="wrap_content"
36 android:layout_height="match_parent"
37 android:layout_gravity="left"
38 android:background="@drawable/tab_unselected_holo"
39 android:tabStripEnabled="false" />
40 <FrameLayout
41 android:layout_width="wrap_content"
42 android:layout_height="match_parent"
43 android:layout_gravity="right">
44 <LinearLayout
45 android:layout_width="wrap_content"
46 android:layout_height="match_parent"
47 android:visibility="gone">
48 <com.android.launcher2.ApplicationInfoDropTarget
49 android:id="@+id/all_apps_info_target"
50 android:layout_width="wrap_content"
51 android:layout_height="match_parent"
52 android:layout_gravity="center"
53 android:gravity="center"
54 android:drawableLeft="@drawable/ic_home_info_holo_dark"
55 android:background="@drawable/focusable_view_bg"
56 android:focusable="true"
57 android:visibility="gone" />
58 <com.android.launcher2.DeleteZone
59 style="@style/DeleteZone"
60 android:id="@+id/all_apps_delete_zone"
61 android:layout_width="wrap_content"
62 android:layout_height="match_parent"
63 android:layout_gravity="center"
64 android:gravity="center"
65 android:background="@drawable/focusable_view_bg"
66 android:focusable="true"
67 android:visibility="gone"
68 launcher:direction="horizontal" />
69 </LinearLayout>
70 <TextView
71 style="@style/MarketButton"
72 android:id="@+id/market_button"
Winson Chungd2e87b32011-06-02 10:53:07 -070073 android:onClick="onClickAppMarketButton"
Winson Chung785d2eb2011-04-14 16:08:02 -070074 android:layout_width="wrap_content"
75 android:layout_height="match_parent"
76 android:layout_gravity="center"
77 android:gravity="center"
78 android:background="@drawable/tab_widget_indicator_selector"
Winson Chungd2e87b32011-06-02 10:53:07 -070079 android:focusable="true"
80 android:clickable="true" />
Winson Chung785d2eb2011-04-14 16:08:02 -070081 </FrameLayout>
82 </FrameLayout>
83 <FrameLayout
84 android:id="@android:id/tabcontent"
85 android:layout_width="match_parent"
86 android:layout_height="match_parent">
87 <com.android.launcher2.AppsCustomizePagedView
88 android:id="@+id/apps_customize_pane_content"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 launcher:cellCountX="@integer/all_apps_view_cellCountX"
92 launcher:cellCountY="@integer/all_apps_view_cellCountY"
93 launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap"
94 launcher:pageLayoutHeightGap="@dimen/all_apps_view_pageLayoutHeightGap"
95 launcher:pageLayoutPaddingTop="@dimen/all_apps_view_pageLayoutPaddingTop"
96 launcher:pageLayoutPaddingBottom="@dimen/all_apps_view_pageLayoutPaddingBottom"
97 launcher:pageLayoutPaddingLeft="@dimen/all_apps_view_pageLayoutPaddingLeft"
Winson Chung4b576be2011-04-27 17:40:20 -070098 launcher:pageLayoutPaddingRight="@dimen/all_apps_view_pageLayoutPaddingRight"
99 launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap"
100 launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap"
101 launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x"
Winson Chung6a26e5b2011-05-26 14:36:06 -0700102 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" />
Winson Chung785d2eb2011-04-14 16:08:02 -0700103 </FrameLayout>
104 </LinearLayout>
105</com.android.launcher2.AppsCustomizeTabHost>