diff options
author | Winson Chung <winsonc@google.com> | 2011-08-09 17:31:00 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-09 17:31:00 -0700 |
commit | da310680c5729710d9ee4d0d2d7c1c1117060ad8 (patch) | |
tree | 520c19547405d08f77c88e206b8a8a9b629e14d9 /res | |
parent | d771c96e5d156ffde5d35ee13ce053de60dc3163 (diff) | |
parent | c100e8eae7d67ad5bd78767494b62b8fae5d1779 (diff) | |
download | android_packages_apps_Trebuchet-da310680c5729710d9ee4d0d2d7c1c1117060ad8.tar.gz android_packages_apps_Trebuchet-da310680c5729710d9ee4d0d2d7c1c1117060ad8.tar.bz2 android_packages_apps_Trebuchet-da310680c5729710d9ee4d0d2d7c1c1117060ad8.zip |
Merge "Tablet/AllApps fixes."
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-large/market_button.xml | 35 | ||||
-rw-r--r-- | res/layout/apps_customize_pane.xml | 21 | ||||
-rw-r--r-- | res/layout/market_button.xml | 31 | ||||
-rw-r--r-- | res/values-large-port/dimens.xml | 8 | ||||
-rw-r--r-- | res/values-large/dimens.xml | 4 | ||||
-rw-r--r-- | res/values-xlarge-port/dimens.xml | 5 | ||||
-rw-r--r-- | res/values/dimens.xml | 1 |
7 files changed, 71 insertions, 34 deletions
diff --git a/res/layout-large/market_button.xml b/res/layout-large/market_button.xml new file mode 100644 index 000000000..ad5f6da0d --- /dev/null +++ b/res/layout-large/market_button.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<TextView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" + style="@style/MarketButton" + android:onClick="onClickAppMarketButton" + android:gravity="center" + android:paddingLeft="@dimen/toolbar_button_horizontal_padding" + android:paddingRight="@dimen/toolbar_button_horizontal_padding" + android:drawablePadding="10dp" + android:text="@string/market" + android:contentDescription="@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" /> diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml index 788d4c335..05e7fc124 100644 --- a/res/layout/apps_customize_pane.xml +++ b/res/layout/apps_customize_pane.xml @@ -35,27 +35,12 @@ android:layout_gravity="left" android:background="@drawable/tab_unselected_holo" android:tabStripEnabled="false" /> - <TextView - style="@style/MarketButton" + <include android:id="@+id/market_button" - android:onClick="onClickAppMarketButton" + layout="@layout/market_button" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_gravity="right" - android:gravity="center" - android:paddingLeft="@dimen/toolbar_button_horizontal_padding" - android:paddingRight="@dimen/toolbar_button_horizontal_padding" - android:text="@string/market" - android:contentDescription="@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" /> + android:layout_gravity="right" /> </FrameLayout> <FrameLayout android:id="@android:id/tabcontent" diff --git a/res/layout/market_button.xml b/res/layout/market_button.xml new file mode 100644 index 000000000..2d840d731 --- /dev/null +++ b/res/layout/market_button.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<TextView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" + style="@style/MarketButton" + android:onClick="onClickAppMarketButton" + android:gravity="center" + android:paddingLeft="@dimen/toolbar_button_horizontal_padding" + android:paddingRight="@dimen/toolbar_button_horizontal_padding" + android:contentDescription="@string/market" + 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" /> diff --git a/res/values-large-port/dimens.xml b/res/values-large-port/dimens.xml index e0651b22b..4e1cf8fc9 100644 --- a/res/values-large-port/dimens.xml +++ b/res/values-large-port/dimens.xml @@ -18,10 +18,6 @@ <!-- AppsCustomize --> <dimen name="apps_customize_cell_width">96dp</dimen> <dimen name="apps_customize_cell_height">96dp</dimen> - <!-- The amount of space to account for the next/prev pages when - calculating the number of columns to fit a page. - In portrait/large we use apps_customize_cell_width / 8. --> - <dimen name="apps_customize_peek_width">12dp</dimen> <dimen name="workspace_page_spacing">64dp</dimen> <!-- Workspace --> @@ -40,6 +36,6 @@ <dimen name="apps_customize_pageLayoutHeightGap">36dp</dimen> <dimen name="apps_customize_pageLayoutPaddingTop">25dp</dimen> <dimen name="apps_customize_pageLayoutPaddingBottom">10dp</dimen> - <dimen name="apps_customize_pageLayoutPaddingLeft">20dp</dimen> - <dimen name="apps_customize_pageLayoutPaddingRight">20dp</dimen> + <dimen name="apps_customize_pageLayoutPaddingLeft">10dp</dimen> + <dimen name="apps_customize_pageLayoutPaddingRight">10dp</dimen> </resources>
\ No newline at end of file diff --git a/res/values-large/dimens.xml b/res/values-large/dimens.xml index 234fcdb0a..3fe53b541 100644 --- a/res/values-large/dimens.xml +++ b/res/values-large/dimens.xml @@ -33,10 +33,6 @@ <dimen name="apps_customize_tab_bar_height">56dp</dimen> <dimen name="apps_customize_cell_width">96dp</dimen> <dimen name="apps_customize_cell_height">96dp</dimen> - <!-- The amount of space to account for the next/prev pages when - calculating the number of columns to fit a page. - In landscape/large we use apps_customize_cell_width / 4. --> - <dimen name="apps_customize_peek_width">48dp</dimen> <dimen name="apps_customize_widget_cell_width_gap">36dp</dimen> <dimen name="apps_customize_widget_cell_height_gap">36dp</dimen> diff --git a/res/values-xlarge-port/dimens.xml b/res/values-xlarge-port/dimens.xml index 4f532805a..0850e8c75 100644 --- a/res/values-xlarge-port/dimens.xml +++ b/res/values-xlarge-port/dimens.xml @@ -15,11 +15,6 @@ --> <resources> - <!-- The amount of space to account for the next/prev pages when - calculating the number of columns to fit a page. - In portrait/xlarge we use apps_customize_cell_width / 4. --> - <dimen name="apps_customize_peek_width">48dp</dimen> - <!-- We can also afford to have a slightly wider portrait layout in xlarge --> <dimen name="apps_customize_pageLayoutWidthGap">36dp</dimen> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 641f8ea36..39342377d 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -41,7 +41,6 @@ <!-- The width can be 72dp because we don't have L/R padding --> <dimen name="apps_customize_cell_width">72dp</dimen> <dimen name="apps_customize_cell_height">80dp</dimen> - <dimen name="apps_customize_peek_width">0dp</dimen> <dimen name="apps_customize_max_gap">18dp</dimen> <dimen name="apps_customize_widget_cell_width_gap">10dp</dimen> <dimen name="apps_customize_widget_cell_height_gap">10dp</dimen> |