冲刺(五)

提取布局属性:theme&style。theme是针对窗体级别的,改变窗体样式;style是针对窗体元素级别的,改变指定控件或者Layout的样式。

将xml解析成View视图:Inflater(自定义控件)

private LayoutInflater mLayoutInflater;

//获取LayoutInflater实例的三种方法

mLayoutInflater=getLayoutInflater();
mLayoutInflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
mLayoutInflater=LayoutInflater.from(SplashActivity.this);

  

原文地址:https://www.cnblogs.com/dixingchen/p/12794271.html