- 博客(1)
- 收藏
- 关注
原创 关于Android AlertDialog的setView
如果要取AlertDialog中的EditText的值或者给Button设置点击事件,则不能直接使用findViewById,直接使用会导致空指针异常NullPointerException,必须要是在setView之前通过的自己定义的的View来findViewById, final TableLayout tl = (TableLayout) getLayoutInflater().infl
2015-06-21 20:20:19
890
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人