冲刺(五)

提取布局属性: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);

  

posted on 2020-04-21 14:52  帝星辰  阅读(98)  评论(0编辑  收藏  举报

导航