首页实现页面切换

This commit is contained in:
wds
2021-05-25 18:31:26 +08:00
parent 39ca9da5e9
commit 4b28f19d9a
88 changed files with 1071 additions and 127 deletions

View File

@@ -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 {

View File

@@ -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