View createSession;

@Override
public View onCreateView(LayoutInflater inflater,
                         ViewGroup container,
                         Bundle savedInstanceState) {
    // 创建数据视图
    View dataView = inflater.inflate(R.layout.column_layout_data_view, container, false);

    createSession = dataView.findViewById(R.id.btn_create_session);

    //创建session
    createSession.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
                //业务代码
        }
    });

关注我的公众号SpaceObj 领取idea系列激活码

posted on 2023-05-11 09:43  张伯灵  阅读(12)  评论(0编辑  收藏  举报