No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
RotationDemo
RotationDemo.sln
RotationDemo.userprefs
dual_pane.png
nav_drawer.png
phone_0.png
phone_1.png
readme.md

readme.md

Android Rotation and Screen Size Handling with Xamarin

This demo shows how to deal with different layouts based on screen sizes and rotation of devices.

I have read so much about handling screen sizes and layout that I wanted to try and play a bit myself to get a better understanding. My goals were:

  • Support phone screens with full screen transitions
  • Use a navigation drawer for middle sized tablets (wether that makes sense or not is another discussion)
  • Use a dual pane layout for 10 inch devices
  • Base everything on Fragments only
  • Apply custom animations when transitioning between the screens

Relevant links

Screenshots

Dual Pane on big(ger) Tablets

Big Tablets

Drawer Layout on small(er) Tablets

Small Tablets

Two screens on phones

Phone, Screen 1

Phone, Screen 2

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.