문제

i use the following code to listener my listview onItemClick Events. no compile error occurred ,

and nothing happened when i clicked any list item , i don't why Orz

could someone tell me why @@?

mp3_listView.setOnItemClickListener(new OnItemClickListener() 
        { 
            @Override
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2 , long arg3) { 
                Toast.makeText(tabDigTest.this , arg2+" ", Toast.LENGTH_SHORT);
            }
        });
도움이 되었습니까?

해결책

You need to call show on the Toast object then only it'll be shown.

Toast.makeText(tabDigTest.this , arg2+" ", Toast.LENGTH_SHORT).show();

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top