blob: b455153285e6c18db136038eda4dcb5588cef8f2 [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">
19 <LinearLayout
20 android:orientation="vertical"
21 android:layout_width="match_parent"
Winson Chungb26f3d62011-06-02 10:49:29 -070022 android:layout_height="match_parent">
Winson Chung785d2eb2011-04-14 16:08:02 -070023 <!-- The layout_width of the tab bar gets overriden to align the content
24 with the text in the tabs in AppsCustomizeTabHost. -->
25 <FrameLayout
Winson Chungfd3385f2011-06-15 19:51:24 -070026 android:id="@+id/tabs_container"
Winson Chung785d2eb2011-04-14 16:08:02 -070027 android:layout_width="wrap_content"
Winson Chungf0ea4d32011-06-06 14:27:16 -070028 android:layout_height="@dimen/qsb_bar_height"
Winson Chung785d2eb2011-04-14 16:08:02 -070029 android:layout_gravity="center_horizontal">
30 <com.android.launcher2.FocusOnlyTabWidget
31 android:id="@android:id/tabs"
Winson Chungf0ea4d32011-06-06 14:27:16 -070032 android:layout_width="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070033 android:layout_height="match_parent"
34 android:layout_gravity="left"
35 android:background="@drawable/tab_unselected_holo"
36 android:tabStripEnabled="false" />
Winson Chungf0ea4d32011-06-06 14:27:16 -070037 <TextView
38 style="@style/MarketButton"
39 android:id="@+id/market_button"
40 android:onClick="onClickAppMarketButton"
Winson Chung785d2eb2011-04-14 16:08:02 -070041 android:layout_width="wrap_content"
42 android:layout_height="match_parent"
Winson Chungf0ea4d32011-06-06 14:27:16 -070043 android:layout_gravity="right"
44 android:gravity="center"
45 android:text="@string/market"
Winson Chung6a0f57d2011-06-29 20:10:49 -070046 android:contentDescription="@string/market"
Winson Chungf0ea4d32011-06-06 14:27:16 -070047 android:textColor="@color/workspace_all_apps_and_delete_zone_text_color"
48 android:textSize="18sp"
49 android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
50 android:shadowDx="0.0"
51 android:shadowDy="0.0"
52 android:shadowRadius="2.0"
53 android:background="@drawable/tab_widget_indicator_selector"
54 android:focusable="true"
55 android:clickable="true" />
Winson Chung785d2eb2011-04-14 16:08:02 -070056 </FrameLayout>
57 <FrameLayout
58 android:id="@android:id/tabcontent"
59 android:layout_width="match_parent"
60 android:layout_height="match_parent">
61 <com.android.launcher2.AppsCustomizePagedView
62 android:id="@+id/apps_customize_pane_content"
63 android:layout_width="match_parent"
Winson Chungf0ea4d32011-06-06 14:27:16 -070064 android:layout_height="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070065 launcher:cellCountX="@integer/all_apps_view_cellCountX"
66 launcher:cellCountY="@integer/all_apps_view_cellCountY"
67 launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap"
68 launcher:pageLayoutHeightGap="@dimen/all_apps_view_pageLayoutHeightGap"
69 launcher:pageLayoutPaddingTop="@dimen/all_apps_view_pageLayoutPaddingTop"
70 launcher:pageLayoutPaddingBottom="@dimen/all_apps_view_pageLayoutPaddingBottom"
71 launcher:pageLayoutPaddingLeft="@dimen/all_apps_view_pageLayoutPaddingLeft"
Winson Chung4b576be2011-04-27 17:40:20 -070072 launcher:pageLayoutPaddingRight="@dimen/all_apps_view_pageLayoutPaddingRight"
73 launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap"
74 launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap"
75 launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x"
Winson Chungdb1138b2011-06-30 14:39:35 -070076 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y"
77 launcher:maxGap="@dimen/workspace_max_gap" />
Winson Chung007c6982011-06-14 13:27:53 -070078 <ImageView
79 android:id="@+id/paged_view_indicator"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_gravity="bottom"
83 android:visibility="gone"
84 android:alpha="0"
85 android:scaleType="fitXY"
86 android:src="@drawable/paged_view_indicator" />
Winson Chung785d2eb2011-04-14 16:08:02 -070087 </FrameLayout>
88 </LinearLayout>
89</com.android.launcher2.AppsCustomizeTabHost>