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;
|
import safeluck.drive.evaluation.fragment.rulefragments.cview.TextEditText;
|
|
/**
|
* Created by YoKeyword on 16/2/7.
|
*/
|
public class FragmentSetting0 extends SupportFragment {
|
private static final String ARG_NUMBER = "arg_number";
|
private static final String TAG = FragmentSetting0.class.getSimpleName();
|
private TextEditText textEditText;
|
|
private int mNumber;
|
|
public static FragmentSetting0 newInstance(String number) {
|
FragmentSetting0 fragment = new FragmentSetting0();
|
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.fragment_gear_setting, container, false);
|
initView(view);
|
return view;
|
}
|
|
private void initView(View view) {
|
// textEditText = view.findViewById(R.id.textet1);
|
// textEditText.getInput();
|
}
|
|
}
|