Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Bug 767179 - Make user interface appear in fixed size dialogs on tablets. #247

Closed
wants to merge 2 commits into from

Conversation

ncalexan
Copy link
Contributor

See commit comment on second commit for detailed explanation of changes.

@ncalexan
Copy link
Contributor Author

It might be nice to format all the layout .xml files at the same time as landing this, since they're a mess of tabs and bad indentation.

@ncalexan
Copy link
Contributor Author

You'll want the Fennec patch from https://bugzilla.mozilla.org/show_bug.cgi?id=767179 as well.

…ets.

Specifically:

* modify tablet specific styles in res/values-large-v11/sync_styles.xml.

* derive SyncTheme from Theme (phone) or Theme.Dialog (tablet) as
  appropriate.

* uniformize spacing to use SyncSpace dimension (20dp).

* rather than using an external RelativeLayout and pinning the top and
  bottom bar to the parent top and bottom, use an external
  LinearLayout (style SyncContainer) with a middle ScrollView with
  weight 1 that absorbs all available space.  This keeps the previous
  layout on phones but smoothly wraps content on tablets.

* ensure that we resize all layouts when the keyboard is shown.

* set the external LinearLayout (style SyncContainer) layout width,
  minWidth and maxWidth (to 600dip) on tablet only.  We would like to
  set layout width and height to 600x600 dp or similar, but this
  doesn't work when the keyboard is shown.  The current solution looks
  good but can have very tall dialog boxes.  Nothing to be done,
  unfortunately.
@rnewman
Copy link
Contributor

rnewman commented Aug 28, 2012

Reviewed in #250.

@rnewman rnewman closed this Aug 28, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants