冲刺(六)

自定义控件----Inflater:就是将xml解析成View视图。

 private LayoutInflater mLayoutInflater;


//获取LayoutInflater实例的三种方法
mLayoutInflater=getLayoutInflater();
mLayoutInflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
mLayoutInflater=LayoutInflater.from(SplashActivity.this);

提取布局属性:theme&style。theme是针对窗体级别的,改变窗体样式;style是针对窗体元素级别

的,改变指定控件或者Layout的样式。

原文地址:https://www.cnblogs.com/tianwenjing123-456/p/12740456.html