首页实现页面切换
This commit is contained in:
@@ -4,7 +4,7 @@ import com.example.myapplication.R;
|
||||
import com.example.myapplication.base.BaseFragment;
|
||||
|
||||
/**
|
||||
* 我的的Fragment
|
||||
* 我的Fragment
|
||||
* 2021-5-25
|
||||
*/
|
||||
public class MineFragment extends BaseFragment {
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
package com.example.myapplication.fragment;
|
||||
|
||||
import android.view.Gravity;
|
||||
|
||||
import com.example.myapplication.R;
|
||||
import com.example.myapplication.base.BaseFragment;
|
||||
import com.example.myapplication.http.Callback;
|
||||
import com.example.myapplication.http.OkGoBuilder;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* 记录的Fragment
|
||||
@@ -15,6 +21,22 @@ public class RecordFragment extends BaseFragment {
|
||||
@Override
|
||||
protected void initView() {
|
||||
super.initView();
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
OkGoBuilder.getInstance().Builder(getActivity()).url("")
|
||||
.method(OkGoBuilder.PSOT)
|
||||
.json(jsonObject)
|
||||
.cls(Gravity.class)
|
||||
.callback(new Callback() {
|
||||
@Override
|
||||
public void onSuccess(Object response, int id) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e, int id) {
|
||||
|
||||
}
|
||||
}).build();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user