冲刺(六)

自定义控件----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的样式。

posted @ 2020-04-20 22:11  兜转转  阅读(103)  评论(0)    收藏  举报