How to set two different color for odd row and even row of a ListView programmatically?
Wednesday, 14 August 2013
by admin
In a Listview two different color can be set for odd row and even row.By creating a custom adapter and by extending the ArrayAdapter and overriding the getView method it can be handled. And inside the getView method based on the condition the color of the text can be changed using setBackgroundcolor attribute. let see
- Published in Android
Set Button background
Monday, 05 August 2013
by admin
A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touches it.To customize individual buttons with a different background, specify the android:background attribute with a drawable or color resource. This code is for setting background image of a button and set background color
- Published in Android
Related Articles
Top 20 iPhone and Android App Development Companies in the USA
World’s Best iPhone and Android App Devel...Mettle tech – IT Service and APPS provider
TITLE OF THE PROJECT for IIMC Study Group : Me...Checking the usage of face filters in live video in Instagram an amazing experience
Checking the usage of face filters in live vide...HTC’s first phone with 189 aspect ratio, bezel-less display coming in November
HTC’s first phone with 189 aspect ratio, bezel-...The new launch of the “zero touch enrollment” program with pre-configured Android Set’s by Google.
The new launch of the “zero touch enrollment” p...How to speed up your Moto G5
How to speed up your Moto G5 Thе 5th gеnеrаtiо...Touching new sales the Moto G5S Plus available for pre-order, sales go official September 29th
Looking at the vаluе thе Mоtо G5 Pluѕ brоught t...AG-Grid with Ruby Rails Demo – Part – I
Hi Guys, Welcome to AG-Grid with Ru...Android Classroom Training vs Self Studying
Android Classroom Training vs Self Studying Tod...Top 5 Android Apps you must use, The best Android apps of 2017
Top 5 Android Apps you must use, The best Andro...best practices of android apps development
Best practices of android apps development A pl...Top reasons to choose the java developer in New York USA
Top reasons to choose the java developer in New...Top digital camera accessory with android and iphone based camera
Top digital camera accessory with android and i...gps integration in android phones and iphones in usa
GPS integration in android phones and iPhones i...game development for android and ios in canada
The game development for android and ios in can...
Tags
Animation
button
CheckBox
Content Size of Scrollview
Create UIScrollView
create uitableview
Custom Spinner
EditText
FTPClient
GestureDetector
Hide KeyPad
ImageView
IOS
ipad
iphone
Iphone UIScrollView
iphone UITableView
Linearlayout
ListView
onClickListener
onFling
onItemSelectListener
RadioButton
RadioGroup
ScrollView
Select UITableViewCell
Service
setAdapter
setBackground
setBackgroundColor
setBackgroundResource
setText
SharedPreferences
spinner
textview
UIAlertView
UIAlertView delegate
UIAlertView TextField
UIPickerView
UITableView
UITableView Cell
UITableViewCell
UITableView Footer
UITableView header
UIView