Hi,
I set items in Listview using ArrayAdapter.
In which i showed station names.
i placed previous and next buttons to navigate through list items.
Im trying like this
stationList = (ListView) findViewById(android.R.id.list);
nxtButton= (ImageButton) findViewById(R.id.nextButton);
nxtButton.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
moveNxt();
}
});
private void moveNxt(){
stationList.setSelection(stationList.getSelectedItemPosition()
+
1);
}
which is not working.
Pls give me suggestions how i can work out this.
Thanks in advance.
--
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