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();