1. extend your Activity class
from (
ListActivit)
2.Under values folder,
create an XML file and name it as list_data.xml
<? xml version = "1.0" encoding = "utf-8" ?> < resources > < string-array name = "adobe_products" > < item >Adobe After Effects</ item > < item >Adobe Bridge</ item > < item >Adobe Dreamweaver</ item > < item >Adobe Edge</ item > < item >Adobe Fireworks</ item > < item >Adobe Flash</ item > < item >Adobe Photoshop</ item > < item >Adobe Premiere</ item > < item >Adobe Reader</ item > < item >Adobe Illustrator</ item > </ string-array > </ resources > 3.Create an XML file under res/layout folder and name it as list_item.xml <? xml version = "1.0" encoding = "utf-8" ?> <!-- Single List Item Design --> android:id = "@+id/label" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:padding = "10dip" android:textSize = "16dip" android:textStyle = "bold" > </ TextView > 4. In your Activity class file paste these code :
|
No comments:
Post a Comment