am 30fd3107: Merge "Make the dropdown width larger/ matching Gmail." into ics-mr1

* commit '30fd3107c4445b7974e83704bc9dfbce905e654c':
  Make the dropdown width larger/ matching Gmail.
This commit is contained in:
Mindy Pereira 2011-11-11 11:51:22 -08:00 committed by Android Git Automerger
commit dbd8c443df
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...