zoukankan      html  css  js  c++  java
  • Android LayoutInflater

    // 取得LayoutInflater对象
    LayoutInflater LayoutInflater.from(Context);
    LayoutInflater Context.getLayoutInflater();
    LayoutInflater Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    // 常用方法
    View inflate(int resource, ViewGroup root)
    // root -> null 直接生成一个resource对应的View
    // root -> not null 则生成为root的child
  • 相关阅读:
    截取
    逃避系统警察
    刷题
    排队
    侦察兵
    朋友
    楼层
    解码
    倒水
    魔法阵
  • 原文地址:https://www.cnblogs.com/smile365/p/3442820.html
Copyright © 2011-2022 走看看