Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 1 | <?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 Chung | b26f3d6 | 2011-06-02 10:49:29 -0700 | [diff] [blame] | 22 | android:layout_height="match_parent"> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 23 | <!-- 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 Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 27 | android:layout_height="@dimen/qsb_bar_height" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 28 | android:layout_gravity="center_horizontal"> |
| 29 | <com.android.launcher2.FocusOnlyTabWidget |
| 30 | android:id="@android:id/tabs" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 32 | android:layout_height="match_parent" |
| 33 | android:layout_gravity="left" |
| 34 | android:background="@drawable/tab_unselected_holo" |
| 35 | android:tabStripEnabled="false" /> |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 36 | <TextView |
| 37 | style="@style/MarketButton" |
| 38 | android:id="@+id/market_button" |
| 39 | android:onClick="onClickAppMarketButton" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="match_parent" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 42 | 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 Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 54 | </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 Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 62 | android:layout_height="match_parent" |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 63 | 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 Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 70 | 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 Chung | 6a26e5b | 2011-05-26 14:36:06 -0700 | [diff] [blame] | 74 | launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" /> |
Winson Chung | 007c698 | 2011-06-14 13:27:53 -0700 | [diff] [blame^] | 75 | <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 Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 84 | </FrameLayout> |
| 85 | </LinearLayout> |
| 86 | </com.android.launcher2.AppsCustomizeTabHost> |