Activity 里面可以通过LayoutInflater来载入界面。有两种方法
1.
putblic LayoutInflater mInflater;
public Context mContext;
mInflater = (LayoutInflater) mContext .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
2.LayoutInflater mInflater = getLayoutInflater();
Activity 里面可以通过LayoutInflater来载入界面。有两种方法
1.
putblic LayoutInflater mInflater;
public Context mContext;
mInflater = (LayoutInflater) mContext .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
2.LayoutInflater mInflater = getLayoutInflater();