2
嗨,我有一個微調,我有隱藏使用可見性=去的屬性。我使用spinner.performclick()調用微調列表,除了在微調列表中選擇項目時,我的選擇的偵聽器永遠不會被調用。請幫助:)OnItemSelectedListener()沒有被我的微調器調用
拋出的唯一警告目錄下載是「窗口已經集中,忽略聚焦增益」
catagorySpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {
CashDB cdb = new CashDB(getBaseContext());
cdb.open();
Cursor c = cdb.FetchCatagory(id);
startManagingCursor(c);
c.moveToFirst();
String newCatagoryName = c.getString(c.getColumnIndexOrThrow(CashDB.CATAGORY_NAME));
c.close();
areYouSureDialog("Are You Sure?", "Are you sure you want to delete the catagory " +'"'
+ catagoryName + '"'+ " and move all of the transactions to " +'"'
+ newCatagoryName + '"' + " ?",
catagoryIcon, catagoryName,newCatagoryName, DELETE_CATAGORY_MOVE, catagoryId);
}
@Override
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
});
發表一些代碼,並開始標記答案,如果你想繼續得到很好的幫助! – user432209 2011-02-06 19:12:19