resid专题

传text和resid的两种Toast的写法

public void showToast(String text) { CustomToast.makeText(getApplicationContext(), text, Toast.LENGTH_SHORT).show(); } public void showToast(int resId) { CustomToast.makeText(getApplic

LayoutInflater.inflate(resid, parent, false)

public View inflate(int resource, ViewGroup root, boolean attachToRoot)