Bug 838400 - Set an explicit minHeight on context menu items. r=sriram DONTBUILD

This commit is contained in:
Wes Johnston 2013-03-01 16:09:33 -08:00
parent 480a461986
commit c8f9c1d3c9
2 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
private final int mIconTextPadding;
private final int mIconSize;
private final int mInputPaddingSize;
private final int mMinRowSize;
PromptService() {
sInflater = LayoutInflater.from(GeckoApp.mAppContext);
@ -78,6 +79,7 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
mIconTextPadding = (int) (res.getDimension(R.dimen.prompt_service_icon_text_padding));
mIconSize = (int) (res.getDimension(R.dimen.prompt_service_icon_size));
mInputPaddingSize = (int) (res.getDimension(R.dimen.prompt_service_inputs_padding));
mMinRowSize = (int) (res.getDimension(R.dimen.prompt_service_min_list_item_height));
GeckoAppShell.getEventDispatcher().registerEventListener("Prompt:Show", this);
}
@ -692,6 +694,7 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
}
convertView = sInflater.inflate(resourceId, null);
convertView.setMinimumHeight(mMinRowSize);
TextView tv = (TextView) convertView.findViewById(android.R.id.text1);
viewHolder = new ViewHolder(tv, tv.getPaddingLeft(), tv.getPaddingRight(),

View File

@ -44,6 +44,7 @@
<dimen name="prompt_service_inputs_padding">16dp</dimen>
<dimen name="prompt_service_left_right_text_with_icon_padding">10dp</dimen>
<dimen name="prompt_service_top_bottom_text_with_icon_padding">8dp</dimen>
<dimen name="prompt_service_min_list_item_height">48dp</dimen>
<dimen name="remote_tab_child_row_height">64dp</dimen>
<dimen name="remote_tab_group_row_height">26dp</dimen>
<dimen name="popup_width">400dp</dimen>