package com.example.com.cehua; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; /** * Created by linmeihui on 2018/1/5. */ public class Content extends Fragment{ @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v=inflater.inflate(R.layout.context,container,false); TextView tv=v.findViewById(R.id.tv); Bundle arguments = getArguments(); if (arguments!=null){ String list = arguments.getString("list"); tv.setText(list); } return v; } }
侧滑--MyContent
最新推荐文章于 2022-06-08 08:51:42 发布