Tag Archives: Landscape

How to set different layouts for Portrait and Landscape in Android?

By | August 20, 2012

This simple example shows how to set different layouts for portrait and Landscape in Android. If you need a detailed explanation please check this url http://developer.android.com/guide/practices/screens_support.html Android Supports these different categories of screens. 1. xlarge screens are at least 960dp x 720dp 2. large screens are at least 640dp x 480dp 3. normal screens are… Read More »

How to create a custom layout for your camera in Android?

By | December 28, 2011

Hello everyone, Today’s example shows how to create a custom layout for your camera preview, that is if you want a custom layout while your camera is opening. This example helps you to achieve this. First create a fresh project and name it CameraCustomLayout and copy this code to CameraCustomLayout.java file. After that create an… Read More »