diff options
author | Vinod Krishnan <vinodkrishnan@google.com> | 2014-05-05 14:58:15 -0700 |
---|---|---|
committer | Vinod Krishnan <vinodkrishnan@google.com> | 2014-05-09 11:03:20 -0700 |
commit | 119ba2c72dfb50d41177722da01d2750437fb165 (patch) | |
tree | cc77ed087aeeb8aef744814659e2f6809a9d666c /core/res | |
parent | 825bfb4f7e9b87bf49a76d9fb43623da1df0df19 (diff) | |
download | frameworks_base-119ba2c72dfb50d41177722da01d2750437fb165.zip frameworks_base-119ba2c72dfb50d41177722da01d2750437fb165.tar.gz frameworks_base-119ba2c72dfb50d41177722da01d2750437fb165.tar.bz2 |
Adding a margin for the AlertDialog to work on circular UI.
- also removing the background completely for sdk >= 20
Change-Id: I239c8d066bb7ed0d1ab852a4d162475948b8a0d5
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/layout/alert_dialog_micro.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/dimens.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/styles_micro.xml | 10 | ||||
-rw-r--r-- | core/res/res/values/symbols.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/themes_micro.xml | 7 |
5 files changed, 22 insertions, 1 deletions
diff --git a/core/res/res/layout/alert_dialog_micro.xml b/core/res/res/layout/alert_dialog_micro.xml index f8eb46c..abdbd16 100644 --- a/core/res/res/layout/alert_dialog_micro.xml +++ b/core/res/res/layout/alert_dialog_micro.xml @@ -20,6 +20,8 @@ android:id="@+id/parentPanel" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="@android:color/white" + android:layout_gravity="center" android:orientation="vertical"> <LinearLayout android:id="@+id/topPanel" diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index f96195c..c97daf7 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -161,6 +161,8 @@ <!-- Preferred width of the search view. --> <dimen name="search_view_preferred_width">320dip</dimen> + <!-- Dialog padding for round display --> + <dimen name="alert_dialog_round_padding">27dip</dimen> <!-- Dialog title height --> <dimen name="alert_dialog_title_height">64dip</dimen> <!-- Dialog button bar height --> diff --git a/core/res/res/values/styles_micro.xml b/core/res/res/values/styles_micro.xml index bdaa49d..5bac1f9 100644 --- a/core/res/res/values/styles_micro.xml +++ b/core/res/res/values/styles_micro.xml @@ -15,6 +15,16 @@ --> <resources> <style name="AlertDialog.Micro" parent="AlertDialog.Holo.Light"> + <item name="fullDark">@null</item> + <item name="topDark">@null</item> + <item name="centerDark">@null</item> + <item name="bottomDark">@null</item> + <item name="fullBright">@null</item> + <item name="topBright">@null</item> + <item name="centerBright">@null</item> + <item name="bottomBright">@null</item> + <item name="bottomMedium">@null</item> + <item name="centerMedium">@null</item> <item name="layout">@layout/alert_dialog_micro</item> </style> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index e2e7a34..72ff32f 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -120,6 +120,7 @@ <java-symbol type="id" name="overlay_display_window_title" /> <java-symbol type="id" name="package_label" /> <java-symbol type="id" name="packages_list" /> + <java-symbol type="id" name="parentPanel" /> <java-symbol type="id" name="pause" /> <java-symbol type="id" name="perms_list" /> <java-symbol type="id" name="perm_icon" /> @@ -324,6 +325,7 @@ <java-symbol type="color" name="tab_indicator_text_v4" /> <java-symbol type="dimen" name="accessibility_touch_slop" /> + <java-symbol type="dimen" name="alert_dialog_round_padding"/> <java-symbol type="dimen" name="config_prefDialogWidth" /> <java-symbol type="dimen" name="config_viewConfigurationTouchSlop" /> <java-symbol type="dimen" name="config_viewMinFlingVelocity" /> diff --git a/core/res/res/values/themes_micro.xml b/core/res/res/values/themes_micro.xml index 39df700..9647947 100644 --- a/core/res/res/values/themes_micro.xml +++ b/core/res/res/values/themes_micro.xml @@ -47,10 +47,15 @@ <item name="textAppearanceInverse">@style/TextAppearance.Micro</item> </style> - <style name="Theme.Micro.Dialog.Alert" parent="Theme.Holo.Light.Dialog.Alert"> + <style name="Theme.Micro.Dialog.Alert"> <item name="windowTitleStyle">@style/DialogWindowTitle.Micro</item> <item name="alertDialogStyle">@style/AlertDialog.Micro</item> <item name="windowIsFloating">false</item> + <item name="windowBackground">@android:color/transparent</item> + <item name="windowOverscan">true</item> + <item name="windowContentOverlay">@null</item> + <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item> + <item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item> </style> <style name="Theme.Micro.Dialog.AppError" parent="Theme.Micro.Dialog"> |