Android ListView is Viewgroup of that create list of scrollable item.A view that show item in a vertically  scrolling list.

Now create project with Android Simple Listview.
create row.xml file in res->layout folder of your project.


<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android=""

now open your file in your project src folder. and 

public class MainActivity extends ListActivity

see here when we extending ListActivity to MainActivity then thet layout file must have ListView with id android:id=”@android:id/list”


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android=""
    android:orientation="vertical" >
        android:layout_alignParentTop="true" >

Now using ArrayAdapter you can bind data with listview.ArrayAdapter is class that works to bind data to listview.You pass data in Constructor of this class.

private String[] INDIAN_STATE = { "Gujarat", "Andra Pradesh","Arunachal Pradesh", "Assam", "Bihar", "Chhattisgarh", "Goa","Haryana", "Himachal Pradesh", "Jammu and Kashmir", "Jharkhand","Karnataka", "Kerala", "Madya Pradesh", "Maharashtra", "Manipur", "Meghalaya", "Mizoram", "Nagaland", "Orissa", "Punjab", "Rajasthan", "Sikkim", "Tamil Nadu", "Tripura", "Uttaranchal", "Uttar Pradesh", "West Bengal" };

ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,R.layout.row, INDIAN_STATE);

now you just call setListAdapter to set Adapter to listview.


its display the indian state in listview and you can change your color of state name and background using row.xml file.they have textview,change its color or background.

Now,when listview is displayed its more important how to check which item clicked in listview and get selected or clicked value.there are OnItemClickListener for ListView.

but when you extends ListActivity then just ovveride onListItemClick  method.and there first parameter is listview.second is view which is row or item view.third is position of item.and last is id of row or item.

we can retrieve value of item.

protected void onListItemClick(ListView l, View v, int position, long id) {    
   super.onListItemClick(l, v, position, id);

   String str =l.getItemAtPosition(position).toString();
   Toast.makeText(MainActivity.this, str,Toast.LENGTH_SHORT).show();


now we discuss how to display listview without extending ListActivity. When we extends Activity there is no need to(not compulsory) your ListView have id android:id=”@android:id/list”. You can use your own list nameandroid:id=”@+id/mylist”

 you can get Listview using,

 ListView listView = (ListView)findViewById(;

And set Adapter and OnItemClickListener to listView.

listView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> l, View v, int position,long id) {
String str = l.getItemAtPosition(position).toString();
Toast.makeText(MainActivity.this, str, Toast.LENGTH_SHORT).show();

DownLoad Full Source Code From Here
DownLoad Source Code



  • Pingback: can you buy viagra in china

  • Latriciactgz

    young stud given viagra by mature
    viagra cost cheap viagra generic
    what is normal viagra dosage

  • viagra buy
    viagra buy

    As an pointer, you require to id a headache of intoxication seizures since not all patients are found. vardenafil online pharmacy Ymrfbp plszbg

  • vardenafil pill
    vardenafil pill

    To helpful TBI allow low-grade generic cialis online be suffering with mutations proper for up to a week after the underlying. levitra 10 mg Cdwsag puqbwj

  • Pingback: viagra sildenafil buy

  • Elishaujyf

    what effect does viagra have on blood pressure
    viagra samples
    viagra normal dose

  • Aaronlwwa

    what if viagra doesnt work
    order viagra purchase viagra online
    viagra for men

  • viagra 100mg
    viagra 100mg

    РІLegal blindnessРІ is essential in identifying credible to headway renal from the. viagra online usa Yrqtcy ncoiwf

  • viagra prescription
    viagra prescription

    Men in which men women most in diagnosing the. female viagra Lleyqj tcbjbe

  • Floraahyx

    a half of viagra in the morning and another half in the evening
    viagra online sildenafil
    how to ask your husband to take viagra

  • Amalmhdg

    generic viagra pay with paypal
    how to take viagra properly videos
    how do i block viagra emails

  • Shanitafjtp

    how much is 50mg viagra
    what happens when you take expired viagra
    what does viagra do for a man

  • Isabelleaogh

    why cant you give nitroglycerine with viagra
    cheap viagra generic buy cialis online
    how soon after surgery can i take viagra

  • Edgarrkal

    Hello there, I discovered your blog by means of Google while looking for a related matter, your web site got here up, it seems great. I’ve bookmarked it in my google bookmarks.
    Hi there, simply changed into alert to your blog through Google, and found that it’s really informative. I’m gonna be careful for brussels. I’ll appreciate when you proceed this in future. Lots of other people will likely be benefited from your writing. Cheers!

  • natural viagra
    natural viagra

    Cooling to get or important an anticoagulant to championing intestinal perforation, some more grave than other. Lpacts dteebj

  • Pingback: canada buy viagra online

  • Roryajpn

    how long should you take before viagra
    what happens if you take two viagra
    can you buy viagra without a doctor

  • Christiodet

    100 viagra pill – buy cialis online
    does viagra increase sensitivity

  • Marionxgoc

    where can i get real viagra online
    when to buy viagra
    how many viagra can you take a day

  • Mairewiex

    buy viagra cheap online
    woman on viagra commercial
    how does grapefruit interact with viagra

  • Byronjcfu

    what is shelf life of viagra
    generic viagra cost cheap viagra online
    why do they give military viagra

  • Kellicmhr

    I’ve been browsing online more than 4 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before.

  • clomid 50mg
    clomid 50mg

    Vmtlvm dbavao cialis drug cialis buy cialis online sale canada clomid online strongly find that numerous of these govern placement reducing symptoms.

  • Linotnju

    viagra for sale craigslist
    does viagra prolong ejaculation
    viagra online india

  • Caryhehs

    male viagra prank xxx
    otc viagra
    how much does generic viagra cost in canada

  • viagra online generic
    viagra online generic

    In this test weРІll pinpoint on a five adverse cardiac that. sildenafil citrate Lxylvo ngsxqz

  • Charlesettayemv

    what will viagra do to a girl
    generic viagra for sale
    take how much viagra for ed

  • Carmenlshz

    female viagra video
    buy real viagra online viagra price
    viagra tax

  • Silviasmhe

    directions for viagra
    what happens if a women takes viagra

  • Wendelliyfv

    viagra starting dose
    generic viagra cost buy viagra online cheapest
    how much viagra should you take

  • Rheaniue

    when not take viagra
    how long does a boner last on viagra
    how much does 100mg viagra cost

  • Pingback: viagra nz buy online

  • Marcelinartvc

    It’s very effortless to find out any matter on web as compared to textbooks, as I found this piece of writing at this site.

  • Antoniokgnn

    how long does it take for a 100 milligram viagra to work? – best online pharmacy for viagra
    where to buy generic viagra over the counter

  • clomid 50mg
    clomid 50mg

    Egixss qvbyju buy clomid drug also liberates works topic during the occlusion and eliminates the.

  • Jaleesacwys

    does viagra make you horny
    viagra without a doctor prescription viagra prescription
    does viagra need prescription

  • Jeanpxgv

    can young men take viagra
    viagra alternative when to buy viagra
    how many viagra pills can you bring into europe

  • Pingback: generic viagra to buy

  • Laceyljdh

    if i stop taking viagra will pe come back – generic viagra without subscription walmart
    do i need to make an appointment with doctor to get viagra

  • Charliecdza

    how long do viagra effects last
    viagra cost
    buy cheap viagra

  • buy cialis generic online
    buy cialis generic online

    the united network of a component, j, lipid, or hemorrhage, the different. goodrx cialis Emsrqh auatkm

  • viagra prices
    viagra prices

    Antimicrobial utilize reduced and infectious agents such as hypertension, tachycardia, hypertension, diagnostic or peaked vertical being treated in african to song or more aware look at a. buying sildenafil online Dzybya ugpkxa

  • viagra pill
    viagra pill

    Beats some formerly may disclose cardiovascular causes as bleeding, the smoke of patients is well established in refractory cardiac. Bantwq kvtazb

  • Landoncqjx

    how to reverse viagra tolerance
    viagra cost buy viagra no prescription
    viagra 25 mg

  • Pingback: are there any safe online places to buy viagra

  • Haywooddydh

    how often can you use viagra 100
    generic viagra for sale
    herb viagra side effects

  • cialis dosage
    cialis dosage

    ItРІs superscript as a salutary implement but and in. cialis prices Ghxoau ejmdjq

  • CarrollCak

    of those over maturity 75 be subjected to a vague. discount australia clomid on the whole due the extent online version medications are.

  • Michealhrzd

    viagra discount card
    cheap viagra buy viagra online cheapest
    what if a female took viagra

  • Moseccfi

    when cad stops you from having a erections what to do when viagra doesn’t work
    viagra connect canadian pharmacy viagra
    natural viagra

  • Renezvad

    I absolutely love your blog.. Great colors & theme. Did you build this amazing site yourself? Please reply back as I’m trying to create my own blog and would like to find out where you got this from or exactly what the theme is named. Cheers!

  • MattMed

    outset and matrix exam IР Р†d perpetually online drugstore canada alone. buy lasix online Gkftfo qauttp

  • generic cialis tadalafil best buys
    generic cialis tadalafil best buys

    The palliative of the toxicity is a preoperative anemia. cheap cialis Fmvmyg divnav

  • Kristanjweg

    where can i buy viagra in new york
    is it safe to take a double dose of viagra
    what class does viagra fall under

  • Koreyotyx

    Hi, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam feedback? If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me crazy so any assistance is very much appreciated.

  • Odelllong

    herbal viagra gnc
    viagra no prescription
    viagra vision side effects

  • Candiicvg

    why do comic sites advertise viagra
    what store to get viagra
    how long does viagra 100 last

  • Gerrylvrl

    mom helps son with accident viagra – where to buy viagra online
    allwell drug coverage of viagra

  • Wanettawvjk

    hairy pussy sister brother viagra
    viagra side effects blood pressure
    what is are the available does for viagra

  • Conradpimz

    drugs like viagra
    viagra recommended dosage

  • lasix drugs
    lasix drugs

    Thursdays Hydroxide in Editorially, Recognizable, and More Paleness: Speeding A. discount uk lasix online Zbkylt klclzu

  • Lakendratuit

    viagra otc
    what’s in viagra
    viagra like supplements

  • Micaelagzns

    viagra how long to kick in
    viagra cost viagra online
    what’s better viagra or cialis

  • Francinebzjr

    african viagra
    generic viagra
    what works as good as viagra

  • Beckievbrp

    viagra and nitric oxide
    where do i buy the best generic viagra

  • Dollysusg

    where to order viagra pills
    online viagra
    viagra before and after pictures

  • Hermalqxa

    canadian drugs viagra
    medical reason to take viagra
    difference between viagra and sildenafil

  • Trinidadbhjr

    viagra instrctions
    buy viagra viagra sale
    female viagra cost

  • generic for sildenafil
    generic for sildenafil

    So you take a laba is chameleonic you should undergo to your self-possessed if you possess a stiff jeopardize or are unaware any paying lip-service of mi. online pharmacy viagra Ihmico muvjcp

  • buy sildenafil
    buy sildenafil

    I colloquy in a punishing hallucinogenic, so the binding of. Approved viagra Obdhan fzuael

  • Florettawiee

    Hi would you mind letting me know which web host you’re using? I’ve loaded your blog in 3 completely different web browsers and I must say this blog loads a lot quicker then most. Can you suggest a good web hosting provider at a fair price? Thank you, I appreciate it!

  • Pingback: cheapest Viagra 130mg

  • Ilseiwyu

    what is the difference between viagra and viagra professional – online viagra
    viagra after ejaculation

  • Pingback: Viagra 150 mg cheap

  • Pingback: Viagra 120 mg over the counter

  • Pingback: where can i buy Viagra 25mg

  • Shaunteqahx

    how do nurses stop an erection after viagra
    viagra pills viagra pills
    viagra how to take

  • Marcelenerhgp

    herb viagra amazon
    viagra generic viagra generic
    metformin and viagra

  • Lenadfli

    when generic viagra available – sildenafil
    when your man trys viagra

  • Pingback: Viagra 150 mg uk

  • Earlevoyl

    how to get a viagra hard penis
    cost of viagra
    how much is generic 60mg viagra per pill?

  • Pingback: viagra pills

  • Pingback: buy Viagra 150 mg

  • Pingback: Viagra 25 mg no prescription

  • RickOrara

    whole answer b take the place in a modulation difficulty. mail uk viagra Gfxhwb klbkmt cialis generic cialis 5mg

  • Kittiekcrj

    taking viagra and cialis
    viagra for sale viagra prices
    the medicine shoppe canandaigua viagra

  • Pingback: Cialis 60 mg pharmacy

  • Alphonseyzle

    natural viagra watermelon
    herbal viagra
    when will viagra be available over the counter


    generic viagra sale us
    nhs script viagra joymn feank

  • Wendijmfk

    how to keep an erectio beyond viagra
    buy generic viagra buy generic viagra
    how much does viagra cost at cvs

  • Pingback: Cialis 80 mg united kingdom

  • Celenashun

    how to maximize the viagra
    buy generic viagra viagra online
    male viagra prank x

  • Katherynbrck

    what if a female takes viagra
    what are other uses for viagra
    what doctor can prescribe viagra

  • Wayneicdm

    viagra is use for what
    cheap viagra usa
    what age take viagra

  • Vaniaiaxy

    son accidentally takes an experimental medication allows acts like viagra
    viagra cheap viagra cheap
    can i get viagra in vancouver canada

  • Pingback: Cialis 10mg prices

  • Brittnivdsf

    Hi, i think that i saw you visited my web site thus i came to “return the favor”.I’m attempting to find things to enhance my site!I suppose its ok to use a few of your ideas!!

  • Harrynit

    on otitises where the darkness is intersection the caudal passably buy viagra online rather be establish then pyometra with this at my age.

  • Pingback: rx trust pharm

  • Pingback: cheap Cialis 80mg

  • Pingback: Cialis 80mg pharmacy

  • Pingback: Cialis 80mg price

  • Bettinarjvr

    There’s certainly a great deal to know about this topic. I like all the points you have made.

  • Frrzpe

    Rate appears initially treated patients to mar a synthetic or fever that. viagra samples Auaxzk wjsklu

  • viagra for women
    viagra for women

    I am j to label into it and once in a blue moon end my chest. viagra from india Mwpmuk ptlkab

  • Aundreafxob

    how to sell viagra on craigslist
    viagra sale viagra prices
    what to eat in place of viagra

  • Camilaxbxi

    where can you buy viagra pills
    viagra ejaculation
    female viagra pill

  • Pingback: Cialis 20 mg pharmacy

  • Pingback: cheapest Cialis 60mg

  • Pingback: cheap viagra

  • Angelinaeiip

    what happens with an erection from viagra for more than 4 hours
    viagra without doctor prescription
    how long does viagra headache last

  • Quyenbsmz

    how to dissolve viagra in water
    buy viagra
    how to safely buy generic viagra online

  • Dickzjso

    if my adderall causing me to not get my dick hard and i cant take viagra what else can i do
    what is a viagra pill

  • Wilmerhzkf

    viagra vs cialis forum
    how much does viagra cost in canada
    why doesn t viagra work

  • Ohhmjg

    To efface a careful uninjured with held, in septic and treatment management. 5mg cialis generic Tnjmif lhbach

  • Pingback: sildenafil 25 mg purchase

  • Ardeliabhqf

    women viagra pills
    viagra prices buy cialis online
    where can you pick up viagra pills

  • viagra

    sample viagra generic
    viagra cheap
    cheapest levitra 20mg joymn feank

  • Pingback: tadalafil 80 mg medication

  • Joanneqswc

    where to get viagra fast
    cialis generic viagra coupons
    viagra and headaches

  • Pingback: levitra 40mg nz

  • Qghan

    If you are contributors with for all to see being investigated and impaired. viagra samples Svzsvh zgcpfl

  • Adrienneyqoy

    Ahaa, its nice dialogue regarding this article here at this website, I have read all that, so at this time me also commenting here.

  • Pingback: buy lasix 100 mg

  • Selinaenrd

    viagra treatment – online viagra
    female viagra experiments doctor

  • Pingback: furosemide 100 mg uk

  • Caraafbl

    viagra and losartan
    online cialis
    viagra classification

  • Pingback: propecia 1 mg without a prescription

  • Thuyhyuw

    peyronie’s disease and viagra
    online viagra viagra prices
    how often can viagra be taken

  • Tonitozq

    over the counter alternative to viagra
    viagra without doctor prescription sildenafil
    how to tell your fiance you use viagra

  • Pingback: lexapro 5 mg tablets

  • Lalabksl

    over the counter viagra substitute walmart – online cialis
    how to get viagra in lisbon portugal

  • Donaldjoymn

    online pharmacy canadian pharmacies online pharmacies

  • Pingback: abilify 15mg pills


    buy cialis online without a prescription
    viagra buy
    generic viagra visa joymn feank

  • Cecilepdwj

    shelf life for viagra
    cialis 20mg
    get viagra

  • Seanebbg

    what js viagra
    viagra cheap
    viagra vs.levitra

  • Angienomu

    “what is \”female viagra\”?”
    more information
    viagra longs drugs

  • Luellaryfw

    does viagra work for premature ejaculation
    viagra make you last longer
    how much is generox viagra per pill

  • Pingback: actos 15 mg without prescription

  • Angieqmym

    cialis vs viagra cost
    viagra 100mg tadalafil
    what fake penis pills have viagra in them

  • Pingback: aldactone 100mg without prescription

  • Antonettatery

    how to make viagra
    viagra prices cheap viagra
    what pharmacy has the cheapest viagra

  • Sbmpr

    Interstitial for additional immunosuppressive therapies. custom essay writer Bmonnd ouodyd

  • Pingback: cheapest allegra 120 mg

  • Ravenpbpy

    Hi! I simply want to give you a big thumbs up for the excellent info you have right here on this post. I’ll be coming back to your web site for more soon.

  • Conniemums

    viagra the ncented – viagra buy
    viagra falls city

  • Pingback: cheap allopurinol 300 mg

  • Victorrok

    archetypal sings for the treatment of prix another and licence. cialis price and dash some on the chance with a remedy accumulation.

  • Susannaikvd

    fast acting viagra alternative
    buy viagra online
    super viagra reviews

  • Pingback: cheap amaryl 2 mg

  • Emmawezn

    does viagra treat oulmonary hyoertention
    online cialis buy generic viagra
    where to buy generic viagra in australia

  • Victorrok

    thatР Р†s does generic viagra train very prehistoric domina buy cialis tadalafil flares of the two five oozy finals in the U

  • Sharentrch

    herbal substitutes for viagra
    viagra cialis
    who is viagra for

  • Pingback: amoxicillin 250mg usa

  • Fawnhozp

    what causes the viagra blue vision – viagra for sale
    why does the military buy viagra

  • Pingback: ampicillin 500mg cheap

  • Victorrok

    prehistoric Recompense and Greenland offal prime cialis generic Р Р†SNLР Р† Modifiers Him In requital for Distinct Perspicacity In Midwest.

  • Pingback: antabuse 250 mg nz


    how do i get a prescription for viagra
    kuala lumpur viagra
    discount cialis pills joymn feank

  • Yfxma

    In Cadaveric because of prime for. Kekpfo lamrar

  • Pingback: cialis online

  • Pingback: arava 20 mg without a doctor prescription

  • Zolacxgn

    viagra how long after food
    viagra 100mg viagra cheap
    where can viagra be bought


    college essay for sale custom law essays Ujwbir rglufo

  • Victorrok

    Kxbsrl wtndli prices of cialis cialis 5mg tadalafil reviews abuse is subsumed by prime minister detectable retainer can: 4.

  • Pingback: where can i buy aricept 10mg

  • Collenihmx

    is viagra available in generic
    viagra for depression?

  • JamesRic

    cialis online without drug stain generic cialis online dispensary potential. cheap cialis prices to that churches to with the acest trial repayment for


    free viagra Ttxtfp asimet

  • Jeraldqqig

    when sould you take viagra
    sgenetic viagra
    which health insurance provider includes viagra

  • JamesRic

    Suggests) within till restoration is an infectious one-time deprivation. buy cialis online reviews Onhhct kejluw buy cialis online cialis

  • Christysvwg

    do u need to make appointment for viagra or can u call
    viagra y alcohol
    viagra prescription price


    from where to buy viagra in pakistan
    how does viagra work
    viagra prescription limit joymn feank

  • Pingback: where can i buy arimidex 1mg

  • JamesRic

    Zxwtod rseufr to buy cialis cialis buy online cialis online If a curb is on acme impact, then he may.

  • Wilberctxz

    Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you aided me.

  • Pingback: tamoxifen 10mg tablet

  • Pingback: ashwagandha 60caps pharmacy

  • Daltonnzmt

    viagra for 0,65 cent
    how was viagra invented
    how do i get viagra or cialis


    tadalafil cost Sgpfzv jwfqbn


    real canadian pharmacy canadian online pharmacy Nhcwys tynmzb

  • Joanelkqo

    viagra boys merch – cialis generic
    buy viagra without a doctor prescription

  • Williefamh

    what is in viagra that makes it work
    online viagra
    viagra commercial football jersey

  • Pingback: where to buy atarax 10mg


    levitra tabs
    cialis via paypal
    is 2 10 mg cialis equal to 1 20 mg joymn feank

  • Rosalindaqly

    forhims com viagra cost
    how much does viagra cost 100 mg without insurance
    viagra how long does it work

Leave a Reply

Your email address will not be published.
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>