Hello:
I developed an activity that extends the ListActivity.
It has a ListView that binds to a DB.
Thing is that I can click on the items of the view only with the
trackball. When I try touching the items or the view I can't, is not
responsive.
Below the view I have a button that works just fine in touch screen
mode.
I already tried removing the button (I thought that was it) but no.
Any thoughts?
Thanks in advance.
Here is a snippet of my code:
public class Activity_CardList extends ListActivity {
private DbAdapter myDbAdapter;
private DbHelper myDbHelper;
private Cursor HolderCursor;
private String[] from;
private int[] to;
private static final int ADDCARD_DIALOG = 1;
private static final int ABOUT_DIALOG = 2;
static String barcodeNumber = "";
static String cardNote = "";
static String retailerName = "";
static String cardIcon = "";
// private ImageView storeLogo;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.card_list);
myDbAdapter = new DbAdapter(this);
myDbAdapter.open();
HolderCursor = myDbAdapter.getAllEntries();
from = new String[] { myDbHelper.FIELD1, myDbHelper.FIELD2,
myDbHelper.FIELD3 };
to = new int[] { R.id.icon_iv, R.id.field1,
R.id.field2};
SimpleCursorAdapter notes = new SimpleCursorAdapter(this,
R.layout.row,
HolderCursor, from, to);
setListAdapter(notes);
this.getListView().setChoiceMode(1);
this.getListView().setSelectionFromTop(1, 1);
Button addCard = (Button) this.findViewById
(R.id.cardlist_addCard_btn);
addCard.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
showDialog(ADDCARD_DIALOG);
}
});
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---