- 博客(1)
- 收藏
- 关注
转载 关于Android LayoutInflater的一些使用
为什么需要使用 Layoutlnflater Layoutlnflater是一种布局服务,用来实例化XML中的(View)视图对象,不能够直接使用。而是使用 Activity.getLayoutInflater()或 Context#getSystemService检索已经挂接到当前上下文并已针对正在运行的设备正确配置的标准LayoutInflater实例。 创建一个Layoutlnflater LayoutInflater inflater = LayoutInflater.from(parent.get
2021-03-16 14:18:10
128
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人