lizhanwei
2020-01-08 c18de19b7c31f8f3436ece05378e07d089cf6b09
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package safeluck.drive.evaluation.fragment;
 
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
 
import com.google.gson.Gson;
 
import me.yokeyword.fragmentation.SupportFragment;
import safeluck.drive.evaluation.R;
import safeluck.drive.evaluation.bean.RTKConfig;
 
/**FTP配置UI
 * MyApplication2
 * Created by lzw on 2019/3/20. 11:22:39
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class RTKConfigFragment extends SupportFragment implements View.OnClickListener {
 
    private static final String TAG = "RTKConfigFragment";
 
    private EditText et_ip,et_port,et_city_id,et_city_province,et_phone;
 
    public static SupportFragment newInstance(){
        return new RTKConfigFragment();
    }
 
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
 
 
        View view = inflater.inflate(R.layout.layout_rtk_setting,container,false);
        initView(view);
        return view;
    }
 
    private void initView(View view) {
        view.findViewById(R.id.btn_save_rtk).setOnClickListener(this);
    }
 
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_save_rtk:
                Gson gson = new Gson();
                String rtkConfigjson = gson.toJson(RTKConfig.class);
                break;
        }
    }
}