Hi All

I want to set the onclicklistner on the each item to be displayed in
ListVIew.
Can anyone help me out ASAP.

The code i have written is

package munish.android;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;



public class List extends ListActivity {


    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Use an existing ListAdapter that will map an array
        // of strings to TextViews
        setListAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, mStrings));
        getListView().setTextFilterEnabled(true);
    }

    private String[] mStrings = {
             "ImageView", "Grid View", "List View", "Map View",
            "Image Switcher", "Queso Jalapeno", "Queso Majorero",
            };
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to