Make the dropdown width larger/ matching Gmail.

part of b/5520685 update account switch spinner to match Gmail layout

Change-Id: I727d318f3f10199399b61fc4455e44d302fb8e2f
This commit is contained in:
Mindy Pereira 2011-11-09 16:12:13 -08:00
parent 0730c4fcd0
commit 1720f82513
3 changed files with 2 additions and 5 deletions

View File

@ -16,7 +16,7 @@
<!--
The list items for the account spinner drop down.
Popup width is set at runtime from @dimen/account_spinner_dropdown_width
Popup width is set at runtime from @dimen/account_dropdown_dropdownwidth
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:attr/spinnerDropDownItemStyle"

View File

@ -61,8 +61,6 @@
<dimen name="setup_item_inset_left">0dip</dimen>
<dimen name="setup_item_inset_right">0dip</dimen>
<dimen name="account_spinner_dropdown_width">300dip</dimen>
<!-- MessageListItem -->
<dimen name="minimum_width_wide_mode">720dip</dimen>
@ -79,5 +77,4 @@
<dimen name="replystate_margin_top">10sp</dimen>
<dimen name="checkmark_margin_top">3sp</dimen>
<dimen name="star_margin_top">28sp</dimen>
</resources>

View File

@ -564,7 +564,7 @@ public class ActionBarController {
@Override
public void show() {
setWidth(mContext.getResources().getDimensionPixelSize(
R.dimen.account_spinner_dropdown_width));
R.dimen.account_dropdown_dropdownwidth));
setInputMethodMode(ListPopupWindow.INPUT_METHOD_NOT_NEEDED);
super.show();
// List view is instantiated in super.show(), so we need to do this after...