摘要: LayoutInflater的作用和findViewById()差不多,不同之处在于LayoutInflater是找layout文件夹下的某个xml布局文件!而 findViewById()是找某一个xml下的具体 widget控件。LayoutInflater可以将一个xml布局文件转化为View 类型,其代码如下:View Code 1 package hzx.one; 2 3 import android.app.Activity; 4 import android.app.AlertDialog; 5 import android.app.AlertDialog.Builder; .. 阅读全文
posted @ 2011-09-22 10:33 Zhukoo 阅读(10714) 评论(1) 推荐(0) 编辑