listactivity

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

listactivity

Postby android2 » Thu Oct 08, 2009 3:10 pm

I have this class


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

public class Punti extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, posti));
getListView().setTextFilterEnabled(true);
}
static final String[] posti = new String[] {
"Bar","Ristoranti","Chiese"};

}

as do I assign a function to each button??
android2
Developer
Developer
 
Posts: 48
Joined: Sun Oct 04, 2009 8:34 pm

Top

Postby azraeal » Thu Oct 08, 2009 5:48 pm

Please stop double posting and cross posting the same topic. It's called click listeners. Read up on this class's documentation.
azraeal
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Sep 04, 2009 6:34 pm
Location: California

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests