-1
public void someClass(AdapterView<?>arg0,View arg1,int arg2,long arg3)
{
Toast.makeText(arg0.getContext(), "<SOME STRING>
"+arg0.getItemAtPosition(arg2).toString(), Toast.LENGTH_SHORT).show();
}
能否請您解釋一下如何做這一塊代碼work.What的不這段代碼does.I正在創建一個簡單的微調應用,並希望瞭解「敬酒」命令語法! 。Android的「敬酒」命令解釋
您是否嘗試過閱讀[文檔](http://developer.android.com/reference/android/widget/Toast.html)? – MByD 2012-07-08 09:57:40
閱讀這一個:http://developer.android.com/guide/topics/ui/notifiers/toasts.html – NickT 2012-07-08 09:59:42
你有沒有嘗試在模擬器或設備上運行它? – Axarydax 2012-07-09 06:33:32