第一阶段冲刺——7

对于程序提取布局属性的学习: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/fwk123/p/13090746.html