摘要: 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 @ 2012-02-09 21:19 skyCc--天空副本 阅读(153) 评论(0) 推荐(0) 编辑