Posts Tagged ‘ screen ’

Retain markers on screen rotation in Google Maps Android API V2 using Parcelable LatLng points

May 14, 2013
By
Google Maps Android API V2 with retained markers on Screen rotation using Parcelable LatLng objects

In this article, we will develop an Android application which demonstrates how to persist marker points in Google Maps Android API V2 on screen rotation. On adding a marker in the Google Maps, corresponding coordinates will be added to an ArrayList as LatLng object. Then on screen rotation the array list will be saved...

Read more »

Styles and Themes in Android Applications – Series

January 19, 2013
By
Custom Styles and Themes Android Applications

A list of Android applications with custom styles and themes are listed below : Using styles and themes in Android Using different themes for different Android versions Working with 9-patch (Nine Patch) images in Android Changing background color and border color of an EditText widget using State List in Android Getting Screen properties in...

Read more »

Different layouts for landscape and portrait orientations in Android

June 29, 2012
By
Different layouts for landscape and portrait orientations

In this article we will create an Android application which uses different layouts for landscape and portrait views of the device 1. Create an Android project namely “LandPortView” 2. Select Android build target 3. Enter application details 4. res/values/strings.xml 5. Create a new folder namely “layout-land” under the folder “res” 6. Create a layout...

Read more »

Different layouts for different screen sizes in Android

June 29, 2012
By
Different layouts for different screen sizes in Android

Android ( Version less than 3.2 or API Level less than 13 )  classifies the screen sizes into four different groups such as small, normal, large and extra large. The resolutions of small, normal, large and extra large are at least 426 x 320 , 470 x 320 ,  640 x 480 and 960...

Read more »

Getting Screen properties in an Android application

June 28, 2012
By
Screen Properties

In this article, we will create an Android application which will show the screen’s display properties like screen width, screen height and density. 1. Create an Android project namely “ScreenDemo” 2. Select Android build target 3. Enter application details 4. res/layout/main.xml 5. src/in/wptrafficanalyzer/screendemo/MainActivity.java 6. Application in execution 7. Download 8. Reference http://developer.android.com/guide/index.html How to...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner