如题,我试过一些方法没实现。
使用的是自定义布局,我用的下面方法:
TextView mjollnir_descr = (TextView) findViewById(R.id.dialog_item_descr);
mjollnir_descr.setText(R.string.item_detail_clarity_descr);
在代码第二行报出的错误:
03-31 19:45:25.261: E/AndroidRuntime(781): FATAL EXCEPTION: main
03-31 19:45:25.261: E/AndroidRuntime(781): java.lang.IllegalStateException: Could not execute method of the activity
03-31 19:45:25.261: E/AndroidRuntime(781): Caused by: java.lang.NullPointerException
03-31 19:45:25.261: E/AndroidRuntime(781): at com.myapp.ItemsOverview.show_details_mjollnir(ItemsOverview.java:81)