Posts Tagged ‘ themes ’

Android – Programatically changing text color of EditText in EditorAction listener

January 22, 2013
By
Programatically changing text color of EditText widget

In this article, we will develop an Android application which changes the text color of an EditText widget when a valid color is entered in the EditText. This application is developed in Eclipse ( 4.2.1 ) with ADT plugin ( 21.0.0 ) and Android SDK ( 21.0.0 ). 1. Create a new Android application...

Read more »

Android – Changing text color of EditText using editTextStyle property

January 21, 2013
By
Changing text color of EditText widget

In this article, we will create an Android application which will change the text color of EditText widget using ediTextStyle property defined in the file res/values/styles.xml. This application is developed in Eclipse 4.2.1 with ADT plugin ( 21.0.0 ) and Android SDK ( 21.0.0 ). 1. Create a new Android application project namely “TextColorEditText”...

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 »

Using different themes for different Android versions

January 18, 2013
By
Different themes in different Android API Versions

In this article, we will develop an Android Application that demonstrates how to use different themes for different Android versions. As shown in the screenshot section, the text “Hello world!” will be displayed in blue, green and red when this application is run API level less than 11, greater than or equal to 11...

Read more »

Changing background color and border color of an EditText widget using State List in Android

July 14, 2012
By
EditText Widget

In this article, we will create an application which will demonstrate how to change the background color and border color of an EditText widget. Here, we are changing the default background color and border color of theĀ  EditText widget using 9-patch image files. The state list xml file is used to define the 9-patch...

Read more »

Working with 9-patch (Nine Patch) images in Android

July 12, 2012
By
Nine Patch Demo in Action

Nine patch ( 9-patch ) images are normal images with an additional 1 pixel border. This additional 1 pixel border is used to define 1. the scalable portion of the image 2. the portion of the image where the Android’s view object can render the content ( eg : caption of a button )...

Read more »

Using styles and themes in Android

July 11, 2012
By
Styles and Themes

In Android, styles provide a simple mechanism to change look and appearance of the widgets which is equivalent to CSS in web. If we need to change the appearance of a single view ( edittext, textview, button ) then styles are used. If we need to change the appearance of the all the views...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner