diff options
author | Winson Chung <winsonc@google.com> | 2011-06-06 14:27:16 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-06-13 11:49:32 -0700 |
commit | f0ea4d3378be7b962c8e0bce2392df5e82491fb8 (patch) | |
tree | 72300454a7751c7d1b239c5264a73233736fc8a0 /res/layout | |
parent | bf5a5c894d8af7f3b3001ebbc596fd83a0a73c7e (diff) | |
download | android_packages_apps_Trebuchet-f0ea4d3378be7b962c8e0bce2392df5e82491fb8.tar.gz android_packages_apps_Trebuchet-f0ea4d3378be7b962c8e0bce2392df5e82491fb8.tar.bz2 android_packages_apps_Trebuchet-f0ea4d3378be7b962c8e0bce2392df5e82491fb8.zip |
Replacing AllApps/Customize in tablet UI with Apps/Customize.
Change-Id: I11a296b25472e4bf298a468865b0dff29f500aaa
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/apps_customize_pane.xml | 66 | ||||
-rw-r--r-- | res/layout/apps_customize_widget.xml | 11 | ||||
-rw-r--r-- | res/layout/qsb_bar.xml | 10 |
3 files changed, 38 insertions, 49 deletions
diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml index f3ecb4824..55cba9999 100644 --- a/res/layout/apps_customize_pane.xml +++ b/res/layout/apps_customize_pane.xml @@ -16,10 +16,6 @@ <com.android.launcher2.AppsCustomizeTabHost xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"> - <com.android.launcher2.AllAppsBackground - android:id="@+id/all_apps_background" - android:layout_width="match_parent" - android:layout_height="match_parent" /> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" @@ -28,57 +24,33 @@ with the text in the tabs in AppsCustomizeTabHost. --> <FrameLayout android:layout_width="wrap_content" - android:layout_height="@dimen/apps_customize_tab_bar_height" + android:layout_height="@dimen/qsb_bar_height" android:layout_gravity="center_horizontal"> <com.android.launcher2.FocusOnlyTabWidget android:id="@android:id/tabs" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="left" android:background="@drawable/tab_unselected_holo" android:tabStripEnabled="false" /> - <FrameLayout + <TextView + style="@style/MarketButton" + android:id="@+id/market_button" + android:onClick="onClickAppMarketButton" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_gravity="right"> - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:visibility="gone"> - <com.android.launcher2.ApplicationInfoDropTarget - android:id="@+id/all_apps_info_target" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="center" - android:gravity="center" - android:drawableLeft="@drawable/ic_home_info_holo_dark" - android:background="@drawable/focusable_view_bg" - android:focusable="true" - android:visibility="gone" /> - <com.android.launcher2.DeleteZone - style="@style/DeleteZone" - android:id="@+id/all_apps_delete_zone" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="center" - android:gravity="center" - android:background="@drawable/focusable_view_bg" - android:focusable="true" - android:visibility="gone" - launcher:direction="horizontal" /> - </LinearLayout> - <TextView - style="@style/MarketButton" - android:id="@+id/market_button" - android:onClick="onClickAppMarketButton" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="center" - android:gravity="center" - android:background="@drawable/tab_widget_indicator_selector" - android:focusable="true" - android:clickable="true" /> - </FrameLayout> + android:layout_gravity="right" + android:gravity="center" + android:text="@string/market" + android:textColor="@color/workspace_all_apps_and_delete_zone_text_color" + android:textSize="18sp" + android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color" + android:shadowDx="0.0" + android:shadowDy="0.0" + android:shadowRadius="2.0" + android:background="@drawable/tab_widget_indicator_selector" + android:focusable="true" + android:clickable="true" /> </FrameLayout> <FrameLayout android:id="@android:id/tabcontent" @@ -87,7 +59,7 @@ <com.android.launcher2.AppsCustomizePagedView android:id="@+id/apps_customize_pane_content" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="match_parent" launcher:cellCountX="@integer/all_apps_view_cellCountX" launcher:cellCountY="@integer/all_apps_view_cellCountY" launcher:pageLayoutWidthGap="@dimen/all_apps_view_pageLayoutWidthGap" diff --git a/res/layout/apps_customize_widget.xml b/res/layout/apps_customize_widget.xml index 9d0764cbb..53643b40a 100644 --- a/res/layout/apps_customize_widget.xml +++ b/res/layout/apps_customize_widget.xml @@ -38,6 +38,17 @@ android:adjustViewBounds="true" android:scaleType="fitStart" /> + <!-- The divider image. --> + <ImageView + style="WidgetDivider" + android:id="@+id/divider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:paddingTop="10dp" + android:paddingBottom="10dp" + android:src="@drawable/widget_divider" /> + <!-- The name of the widget. --> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget_name" diff --git a/res/layout/qsb_bar.xml b/res/layout/qsb_bar.xml index 820fae69d..6e1d98c38 100644 --- a/res/layout/qsb_bar.xml +++ b/res/layout/qsb_bar.xml @@ -75,7 +75,10 @@ style="@style/DropTargetButton" android:id="@+id/delete_target" android:text="@string/delete_zone_label_workspace" - android:drawableLeft="@drawable/delete_zone_selector" /> + android:drawableLeft="@drawable/delete_zone_selector" + launcher:strokeColor="#991e3157" + launcher:strokeTextColor="#DDFFFFFF" + launcher:strokeWidth="2.5" /> </FrameLayout> <FrameLayout @@ -86,7 +89,10 @@ style="@style/DropTargetButton" android:id="@+id/info_target" android:text="@string/info_target_label" - android:drawableLeft="@drawable/ic_home_info_holo_dark" /> + android:drawableLeft="@drawable/ic_home_info_holo_dark" + launcher:strokeColor="#991e3157" + launcher:strokeTextColor="#DDFFFFFF" + launcher:strokeWidth="2.5" /> </FrameLayout> </LinearLayout> </com.android.launcher2.SearchDropTargetBar> |