创建view的两种方式

    xiaoxiao2021-04-13  25

    两种创建view的方式,都是传三个参数,切记! 方式一: View view = inflater.inflate(R.layout.fragment_find, container,false); 方式二: View view = View.inflate(getContext(), R.layout.fragment_home, null);
    转载请注明原文地址: https://ju.6miu.com/read-669061.html

    最新回复(0)