package safeluck.drive.evaluation.fragment.rulefragments; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.annotation.Nullable; import androidx.appcompat.widget.Toolbar; import me.yokeyword.fragmentation.SupportFragment; import safeluck.drive.evaluation.R; /** * DriveJudge * Created by lzw on 2020/9/14. 10:16:39 * 邮箱:632393724@qq.com * All Rights Saved! Chongqing AnYun Tech co. LTD */ public class FragmentSetting1 extends SupportFragment { private static final String ARG_NUMBER = "arg_number"; private static final String TAG = FragmentSetting1.class.getSimpleName(); private int mNumber; public static FragmentSetting1 newInstance(String number) { FragmentSetting1 fragment = new FragmentSetting1(); Bundle args = new Bundle(); args.putInt(ARG_NUMBER, Integer.parseInt(number)); fragment.setArguments(args); return fragment; } @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle args = getArguments(); if (args != null) { mNumber =args.getInt(ARG_NUMBER) ; Log.i(TAG,"mNumber="+mNumber); } } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.layout_fragment_parkover, container, false); initView(view); return view; } private void initView(View view) { } }