Setting min width of content in customize tray automatically

Change-Id: Idb307dcf21422472ef098702c1bc12e99f138228
This commit is contained in:
Michael Jurka committed 2011-05-13 14:38:19 -07:00
1 parent 12ac0d60cc
commit d82b5817d4
4 files changed
+7 -8

No files matched your search

@@ -172,12 +172,12 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
final Resources r = context.getResources();
setDragSlopeThreshold(
r.getInteger(R.integer.config_customizationDrawerDragSlopeThreshold) / 100.0f);
mMinPageWidth = r.getDimensionPixelSize(R.dimen.customization_drawer_content_min_width);
// Create a dummy page and set it up to find out the content width (used by our parent)
PagedViewCellLayout layout = new PagedViewCellLayout(getContext());
setupPage(layout);
mPageContentWidth = layout.getContentWidth();
mMinPageWidth = layout.getWidthBeforeFirstLayout();
setVisibility(View.GONE);
setSoundEffectsEnabled(false);