blob: 1b8be80a8a790a0bb6224d11c15e2a00f1e22420 [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
26 android:layout_width="wrap_content"
Winson Chungf0ea4d32011-06-06 14:27:16 -070027 android:layout_height="@dimen/qsb_bar_height"
Winson Chung785d2eb2011-04-14 16:08:02 -070028 android:layout_gravity="center_horizontal">
29 <com.android.launcher2.FocusOnlyTabWidget
30 android:id="@android:id/tabs"
Winson Chungf0ea4d32011-06-06 14:27:16 -070031 android:layout_width="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070032 android:layout_height="match_parent"
33 android:layout_gravity="left"
34 android:background="@drawable/tab_unselected_holo"
35 android:tabStripEnabled="false" />
Winson Chungf0ea4d32011-06-06 14:27:16 -070036 <TextView
37 style="@style/MarketButton"
38 android:id="@+id/market_button"
39 android:onClick="onClickAppMarketButton"
Winson Chung785d2eb2011-04-14 16:08:02 -070040 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
Winson Chungf0ea4d32011-06-06 14:27:16 -070042 android:layout_gravity="right"
43 android:gravity="center"
44 android:text="@string/market"
45 android:textColor="@color/workspace_all_apps_and_delete_zone_text_color"
46 android:textSize="18sp"
47 android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
48 android:shadowDx="0.0"
49 android:shadowDy="0.0"
50 android:shadowRadius="2.0"
51 android:background="@drawable/tab_widget_indicator_selector"
52 android:focusable="true"
53 android:clickable="true" />
Winson Chung785d2eb2011-04-14 16:08:02 -070054 </FrameLayout>
55 <FrameLayout
56 android:id="@android:id/tabcontent"
57 android:layout_width="match_parent"
58 android:layout_height="match_parent">
59 <com.android.launcher2.AppsCustomizePagedView
60 android:id="@+id/apps_customize_pane_content"
61 android:layout_width="match_parent"
Winson Chungf0ea4d32011-06-06 14:27:16 -070062 android:layout_height="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070063 launcher:cellCountX="@integer/all_apps_view_cellCountX"
64 launcher:cellCountY="@integer/all_apps_view_cellCountY"
65 launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap"
66 launcher:pageLayoutHeightGap="@dimen/all_apps_view_pageLayoutHeightGap"
67 launcher:pageLayoutPaddingTop="@dimen/all_apps_view_pageLayoutPaddingTop"
68 launcher:pageLayoutPaddingBottom="@dimen/all_apps_view_pageLayoutPaddingBottom"
69 launcher:pageLayoutPaddingLeft="@dimen/all_apps_view_pageLayoutPaddingLeft"
Winson Chung4b576be2011-04-27 17:40:20 -070070 launcher:pageLayoutPaddingRight="@dimen/all_apps_view_pageLayoutPaddingRight"
71 launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap"
72 launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap"
73 launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x"
Winson Chung6a26e5b2011-05-26 14:36:06 -070074 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" />
Winson Chung007c6982011-06-14 13:27:53 -070075 <ImageView
76 android:id="@+id/paged_view_indicator"
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:layout_gravity="bottom"
80 android:visibility="gone"
81 android:alpha="0"
82 android:scaleType="fitXY"
83 android:src="@drawable/paged_view_indicator" />
Winson Chung785d2eb2011-04-14 16:08:02 -070084 </FrameLayout>
85 </LinearLayout>
86</com.android.launcher2.AppsCustomizeTabHost>