blob: 00c87cb093a5a7f23a708382b01033913b8ef1c1 [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"
Winson Chung649723c2011-07-06 20:41:23 -070045 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
46 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
Winson Chungf0ea4d32011-06-06 14:27:16 -070047 android:text="@string/market"
Winson Chung6a0f57d2011-06-29 20:10:49 -070048 android:contentDescription="@string/market"
Winson Chungf0ea4d32011-06-06 14:27:16 -070049 android:textColor="@color/workspace_all_apps_and_delete_zone_text_color"
50 android:textSize="18sp"
51 android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
52 android:shadowDx="0.0"
53 android:shadowDy="0.0"
54 android:shadowRadius="2.0"
55 android:background="@drawable/tab_widget_indicator_selector"
56 android:focusable="true"
57 android:clickable="true" />
Winson Chung785d2eb2011-04-14 16:08:02 -070058 </FrameLayout>
59 <FrameLayout
60 android:id="@android:id/tabcontent"
61 android:layout_width="match_parent"
62 android:layout_height="match_parent">
63 <com.android.launcher2.AppsCustomizePagedView
64 android:id="@+id/apps_customize_pane_content"
65 android:layout_width="match_parent"
Winson Chungf0ea4d32011-06-06 14:27:16 -070066 android:layout_height="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070067 launcher:cellCountX="@integer/all_apps_view_cellCountX"
68 launcher:cellCountY="@integer/all_apps_view_cellCountY"
69 launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap"
70 launcher:pageLayoutHeightGap="@dimen/all_apps_view_pageLayoutHeightGap"
71 launcher:pageLayoutPaddingTop="@dimen/all_apps_view_pageLayoutPaddingTop"
72 launcher:pageLayoutPaddingBottom="@dimen/all_apps_view_pageLayoutPaddingBottom"
73 launcher:pageLayoutPaddingLeft="@dimen/all_apps_view_pageLayoutPaddingLeft"
Winson Chung4b576be2011-04-27 17:40:20 -070074 launcher:pageLayoutPaddingRight="@dimen/all_apps_view_pageLayoutPaddingRight"
75 launcher:widgetCellWidthGap="@dimen/apps_customize_widget_cell_width_gap"
76 launcher:widgetCellHeightGap="@dimen/apps_customize_widget_cell_height_gap"
77 launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x"
Winson Chungdb1138b2011-06-30 14:39:35 -070078 launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y"
79 launcher:maxGap="@dimen/workspace_max_gap" />
Winson Chung649723c2011-07-06 20:41:23 -070080
81 <include
Winson Chungeb99f162011-07-07 15:29:54 -070082 style="@style/AppsCustomizeScrollTrack"
Winson Chung3ac74c52011-06-30 17:39:37 -070083 android:id="@+id/paged_view_indicator_track"
Winson Chung649723c2011-07-06 20:41:23 -070084 layout="@layout/scroll_indicator_track"
Winson Chung3ac74c52011-06-30 17:39:37 -070085 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
Winson Chung649723c2011-07-06 20:41:23 -070087 android:layout_gravity="bottom" />
88 <include
Winson Chung007c6982011-06-14 13:27:53 -070089 android:id="@+id/paged_view_indicator"
Winson Chung649723c2011-07-06 20:41:23 -070090 layout="@layout/scroll_indicator"
Winson Chung007c6982011-06-14 13:27:53 -070091 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
Winson Chung649723c2011-07-06 20:41:23 -070093 android:layout_gravity="bottom" />
Winson Chung785d2eb2011-04-14 16:08:02 -070094 </FrameLayout>
95 </LinearLayout>
96</com.android.launcher2.AppsCustomizeTabHost>