‘我的’布局完善
This commit is contained in:
parent
17130a7aa2
commit
3242c4861d
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion 30
|
||||||
buildToolsVersion "30.0.3"
|
buildToolsVersion "30.0.3"
|
||||||
ndkVersion '23.0.7123448'
|
// ndkVersion '23.0.7123448'
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.example.myapplication"
|
applicationId "com.example.myapplication"
|
||||||
@ -63,8 +63,8 @@ dependencies {
|
|||||||
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
||||||
//EventBus
|
//EventBus
|
||||||
implementation 'org.greenrobot:eventbus:3.1.1'
|
implementation 'org.greenrobot:eventbus:3.1.1'
|
||||||
|
//三级选择
|
||||||
|
implementation 'com.airsaid.library:pickerview:1.0.3'
|
||||||
/* //加载html
|
/* //加载html
|
||||||
implementation 'com.github.sendtion:XRichText:1.9.4'*/
|
implementation 'com.github.sendtion:XRichText:1.9.4'*/
|
||||||
//加载图片的依赖包
|
//加载图片的依赖包
|
||||||
|
@ -32,6 +32,7 @@ import com.navinfo.outdoor.fragment.UserAttestationFragment;
|
|||||||
import com.navinfo.outdoor.fragment.UserDataFragment;
|
import com.navinfo.outdoor.fragment.UserDataFragment;
|
||||||
import com.navinfo.outdoor.fragment.WithdrawFragment;
|
import com.navinfo.outdoor.fragment.WithdrawFragment;
|
||||||
import com.gyf.immersionbar.ImmersionBar;
|
import com.gyf.immersionbar.ImmersionBar;
|
||||||
|
import com.navinfo.outdoor.fragment.WithdrawalRecordFragment;
|
||||||
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
@ -70,6 +71,7 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
private AboutFragment aboutFragment;//我的-关于的fragment -23
|
private AboutFragment aboutFragment;//我的-关于的fragment -23
|
||||||
private GatheringFragment gatheringFragment;//我的-用户资料-收款信息的fragment -24
|
private GatheringFragment gatheringFragment;//我的-用户资料-收款信息的fragment -24
|
||||||
private UserAttestationFragment userAttestationFragment;//我的-用户资料-实名认证的fragment -25
|
private UserAttestationFragment userAttestationFragment;//我的-用户资料-实名认证的fragment -25
|
||||||
|
private WithdrawalRecordFragment withdrawalRecordFragment;//我的-提现-提现记录的fragment -26
|
||||||
private IssueWebFragment issueWebFragment;//我的-常见问题-web的fragment -27
|
private IssueWebFragment issueWebFragment;//我的-常见问题-web的fragment -27
|
||||||
|
|
||||||
|
|
||||||
@ -139,12 +141,13 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
fragmentTransaction.hide(aboutFragment);
|
fragmentTransaction.hide(aboutFragment);
|
||||||
if (gatheringFragment != null)//我的-用户资料-收款信息的fragment -24
|
if (gatheringFragment != null)//我的-用户资料-收款信息的fragment -24
|
||||||
fragmentTransaction.hide(gatheringFragment);
|
fragmentTransaction.hide(gatheringFragment);
|
||||||
if (userAttestationFragment!=null){//我的-用户资料-实名认证的fragment-25
|
if (userAttestationFragment!=null)//我的-用户资料-实名认证的fragment-25
|
||||||
fragmentTransaction.hide(userAttestationFragment);
|
fragmentTransaction.hide(userAttestationFragment);
|
||||||
}
|
if (withdrawalRecordFragment!=null)
|
||||||
if (issueWebFragment!=null){//我的-常见问题-web的fragment -27
|
fragmentTransaction.hide(withdrawalRecordFragment);
|
||||||
|
if (issueWebFragment!=null)//我的-常见问题-web的fragment -27
|
||||||
fragmentTransaction.hide(issueWebFragment);
|
fragmentTransaction.hide(issueWebFragment);
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -339,7 +342,7 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
fragmentTransaction.show(aboutFragment);
|
fragmentTransaction.show(aboutFragment);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 24://我的-用户资料-收款信息的fragment
|
case 24://我的-用户资料-收款信息的fragment
|
||||||
if (gatheringFragment == null) {
|
if (gatheringFragment == null) {
|
||||||
gatheringFragment = new GatheringFragment();
|
gatheringFragment = new GatheringFragment();
|
||||||
fragmentTransaction.add(R.id.frame_layout, gatheringFragment);
|
fragmentTransaction.add(R.id.frame_layout, gatheringFragment);
|
||||||
@ -347,7 +350,7 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
fragmentTransaction.show(gatheringFragment);
|
fragmentTransaction.show(gatheringFragment);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 25://我的-用户资料-实名认证的fragment
|
case 25://我的-用户资料-实名认证的fragment
|
||||||
if (userAttestationFragment == null) {
|
if (userAttestationFragment == null) {
|
||||||
userAttestationFragment = new UserAttestationFragment();
|
userAttestationFragment = new UserAttestationFragment();
|
||||||
fragmentTransaction.add(R.id.frame_layout, userAttestationFragment);
|
fragmentTransaction.add(R.id.frame_layout, userAttestationFragment);
|
||||||
@ -355,6 +358,14 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
fragmentTransaction.show(userAttestationFragment);
|
fragmentTransaction.show(userAttestationFragment);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 26:
|
||||||
|
if (withdrawalRecordFragment ==null){
|
||||||
|
withdrawalRecordFragment=new WithdrawalRecordFragment();
|
||||||
|
fragmentTransaction.add(R.id.frame_layout,withdrawalRecordFragment);
|
||||||
|
}else {
|
||||||
|
fragmentTransaction.show(withdrawalRecordFragment);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 27://我的-常见问题-web的fragment
|
case 27://我的-常见问题-web的fragment
|
||||||
if (issueWebFragment == null) {
|
if (issueWebFragment == null) {
|
||||||
issueWebFragment = new IssueWebFragment();
|
issueWebFragment = new IssueWebFragment();
|
||||||
@ -446,6 +457,9 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
case 25:
|
case 25:
|
||||||
userAttestationFragment.onActivityResult(requestCode,resultCode,data);
|
userAttestationFragment.onActivityResult(requestCode,resultCode,data);
|
||||||
break;
|
break;
|
||||||
|
case 26:
|
||||||
|
withdrawalRecordFragment.onActivityResult(requestCode,resultCode,data);
|
||||||
|
break;
|
||||||
case 27:
|
case 27:
|
||||||
issueWebFragment.onActivityResult(requestCode,resultCode,data);
|
issueWebFragment.onActivityResult(requestCode,resultCode,data);
|
||||||
break;
|
break;
|
||||||
|
@ -2,6 +2,7 @@ package com.navinfo.outdoor.fragment;
|
|||||||
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
import android.widget.RelativeLayout;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
@ -13,6 +14,9 @@ import com.navinfo.outdoor.base.BaseFragment;
|
|||||||
*/
|
*/
|
||||||
public class AboutFragment extends BaseFragment implements View.OnClickListener {
|
public class AboutFragment extends BaseFragment implements View.OnClickListener {
|
||||||
private ImageView ivAboutFinish;
|
private ImageView ivAboutFinish;
|
||||||
|
private RelativeLayout rlAbout;
|
||||||
|
private RelativeLayout rlServe;
|
||||||
|
private RelativeLayout rlPrivilege;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
@ -27,7 +31,13 @@ public class AboutFragment extends BaseFragment implements View.OnClickListener
|
|||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
ivAboutFinish = (ImageView) findViewById(R.id.iv_about_finish);
|
rlAbout = findViewById(R.id.rl_about);
|
||||||
|
rlAbout.setOnClickListener(this::onClick);
|
||||||
|
rlServe = findViewById(R.id.rl_serve);
|
||||||
|
rlServe.setOnClickListener(this::onClick);
|
||||||
|
rlPrivilege = findViewById(R.id.rl_privilege);
|
||||||
|
rlPrivilege.setOnClickListener(this::onClick);
|
||||||
|
ivAboutFinish =findViewById(R.id.iv_about_finish);
|
||||||
ivAboutFinish.setOnClickListener(this::onClick);
|
ivAboutFinish.setOnClickListener(this::onClick);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +47,12 @@ public class AboutFragment extends BaseFragment implements View.OnClickListener
|
|||||||
case R.id.iv_about_finish:
|
case R.id.iv_about_finish:
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
break;
|
break;
|
||||||
|
case R.id.rl_about:
|
||||||
|
break;
|
||||||
|
case R.id.rl_serve:
|
||||||
|
break;
|
||||||
|
case R.id.rl_privilege:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,7 @@ import android.view.View;
|
|||||||
import android.webkit.WebSettings;
|
import android.webkit.WebSettings;
|
||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
import com.navinfo.outdoor.activity.WebActivity;
|
|
||||||
import com.navinfo.outdoor.api.UserApplication;
|
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,7 +37,6 @@ public class FindFragment extends BaseFragment implements View.OnClickListener{
|
|||||||
linear_task_explain.setOnClickListener(this::onClick);
|
linear_task_explain.setOnClickListener(this::onClick);
|
||||||
linearEnd = findViewById(R.id.linear_end);
|
linearEnd = findViewById(R.id.linear_end);
|
||||||
linearEnd.setOnClickListener(this::onClick);
|
linearEnd.setOnClickListener(this::onClick);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,12 +1,18 @@
|
|||||||
package com.navinfo.outdoor.fragment;
|
package com.navinfo.outdoor.fragment;
|
||||||
|
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 我的等级页面的fragment
|
* 我的等级页面的fragment
|
||||||
*/
|
*/
|
||||||
public class GradeFragment extends BaseFragment {
|
public class GradeFragment extends BaseFragment implements View.OnClickListener{
|
||||||
|
|
||||||
|
private ImageView ivGrade;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
return R.layout.grade_fragment;
|
return R.layout.grade_fragment;
|
||||||
@ -20,6 +26,16 @@ public class GradeFragment extends BaseFragment {
|
|||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
|
ivGrade = findViewById(R.id.iv_grade);
|
||||||
|
ivGrade.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
switch (v.getId()){
|
||||||
|
case R.id.iv_grade:
|
||||||
|
getActivity().finish();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,16 +57,15 @@ public class IssueFragment extends BaseFragment implements View.OnClickListener
|
|||||||
.json(new JSONObject())
|
.json(new JSONObject())
|
||||||
.callback(new Callback<TaskExplainInfo>() {
|
.callback(new Callback<TaskExplainInfo>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(TaskExplainInfo response, int id) {
|
public void onSuccess(TaskExplainInfo taskExplainInfo, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
issueProblemAdapter.setExplainList(response.getBody().getData());
|
issueProblemAdapter.setExplainList(taskExplainInfo.getBody().getData());
|
||||||
Log.d("TAG", "onSuccess: " + response.getMsg() + "");
|
Log.d("TAG", "onSuccess: " + taskExplainInfo.getMsg() + "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e, int id) {
|
public void onError(Throwable e, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
// Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_SHORT).show();
|
|
||||||
Log.d("TAG", "onError: " + e.getMessage());
|
Log.d("TAG", "onError: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}).build();
|
}).build();
|
||||||
@ -75,8 +74,8 @@ public class IssueFragment extends BaseFragment implements View.OnClickListener
|
|||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
ivIssueFinish = (ImageView) findViewById(R.id.iv_issue_finish);
|
ivIssueFinish =findViewById(R.id.iv_issue_finish);
|
||||||
mainIssueRecycler = (XRecyclerView) findViewById(R.id.main_issue_recycler);
|
mainIssueRecycler =findViewById(R.id.main_issue_recycler);
|
||||||
ivIssueFinish.setOnClickListener(this::onClick);
|
ivIssueFinish.setOnClickListener(this::onClick);
|
||||||
mainIssueRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));
|
mainIssueRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));
|
||||||
//设置下划线
|
//设置下划线
|
||||||
@ -91,14 +90,10 @@ public class IssueFragment extends BaseFragment implements View.OnClickListener
|
|||||||
mainIssueRecycler.getDefaultFootView().setNoMoreHint("成功加载完毕");
|
mainIssueRecycler.getDefaultFootView().setNoMoreHint("成功加载完毕");
|
||||||
mainIssueRecycler.setLoadingListener(new XRecyclerView.LoadingListener() {
|
mainIssueRecycler.setLoadingListener(new XRecyclerView.LoadingListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onRefresh() {
|
public void onRefresh() {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadMore() {
|
public void onLoadMore() {}
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
issueProblemAdapter.setOnIssueClick(new IssueProblemAdapter.OnIssueClick() {
|
issueProblemAdapter.setOnIssueClick(new IssueProblemAdapter.OnIssueClick() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -3,6 +3,7 @@ package com.navinfo.outdoor.fragment;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
|
import com.jcodecraeer.xrecyclerview.XRecyclerView;
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ import com.navinfo.outdoor.base.BaseFragment;
|
|||||||
public class MapDownloadFragment extends BaseFragment implements View.OnClickListener{
|
public class MapDownloadFragment extends BaseFragment implements View.OnClickListener{
|
||||||
|
|
||||||
private ImageView ivDownLoad;
|
private ImageView ivDownLoad;
|
||||||
|
private XRecyclerView recyclerView;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
@ -23,6 +25,8 @@ public class MapDownloadFragment extends BaseFragment implements View.OnClickLis
|
|||||||
super.initView();
|
super.initView();
|
||||||
ivDownLoad = findViewById(R.id.iv_download);
|
ivDownLoad = findViewById(R.id.iv_download);
|
||||||
ivDownLoad.setOnClickListener(this);
|
ivDownLoad.setOnClickListener(this);
|
||||||
|
recyclerView = findViewById(R.id.recycler_view);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -6,7 +6,11 @@ import android.widget.Button;
|
|||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.bumptech.glide.Glide;
|
||||||
|
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
|
||||||
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
import com.navinfo.outdoor.activity.FragmentManagement;
|
import com.navinfo.outdoor.activity.FragmentManagement;
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
@ -31,6 +35,7 @@ public class MineFragment extends BaseFragment implements View.OnClickListener{
|
|||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
imageHeard = findViewById(R.id.image_heard);
|
imageHeard = findViewById(R.id.image_heard);
|
||||||
|
Glide.with(getActivity()).load(R.drawable.icon_capacity_evaluation).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(imageHeard);
|
||||||
imageHeard.setOnClickListener(this::onClick);
|
imageHeard.setOnClickListener(this::onClick);
|
||||||
tvName = findViewById(R.id.tv_name);
|
tvName = findViewById(R.id.tv_name);
|
||||||
tvName.setOnClickListener(this::onClick);
|
tvName.setOnClickListener(this::onClick);
|
||||||
@ -62,72 +67,65 @@ public class MineFragment extends BaseFragment implements View.OnClickListener{
|
|||||||
@Override
|
@Override
|
||||||
protected void initData() {
|
protected void initData() {
|
||||||
super.initData();
|
super.initData();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
switch (v.getId()){
|
switch (v.getId()){
|
||||||
case R.id.image_heard:
|
case R.id.image_heard:
|
||||||
case R.id.tv_name:
|
case R.id.tv_name://跳转到个人信息
|
||||||
//跳转到个人信息
|
|
||||||
Intent intentUser = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentUser = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentUser.putExtra("tag",16);
|
intentUser.putExtra("tag",16);
|
||||||
startActivity(intentUser);
|
startActivity(intentUser);
|
||||||
break;
|
break;
|
||||||
case R.id.image_share://分享
|
case R.id.image_share://分享
|
||||||
|
Toast.makeText(getActivity(), "分享", Toast.LENGTH_SHORT).show();
|
||||||
break;
|
break;
|
||||||
case R.id.image_sign://签到
|
case R.id.image_sign://签到
|
||||||
|
Toast.makeText(getActivity(), "签到", Toast.LENGTH_SHORT).show();
|
||||||
break;
|
break;
|
||||||
case R.id.btn_withdraw:
|
case R.id.btn_withdraw://提现页面
|
||||||
//提现页面
|
|
||||||
Intent intentWithdraw = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentWithdraw = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentWithdraw.putExtra("tag",15);
|
intentWithdraw.putExtra("tag",15);
|
||||||
startActivity(intentWithdraw);
|
startActivity(intentWithdraw);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_grade:
|
case R.id.rl_grade://我的等级
|
||||||
//我的等级
|
Intent intentGrade = new Intent(getActivity(), FragmentManagement.class);
|
||||||
/* Intent intentGrade = new Intent(getActivity(), FragmentManagement.class);
|
|
||||||
intentGrade.putExtra("tag",17);
|
intentGrade.putExtra("tag",17);
|
||||||
startActivity(intentGrade);*/
|
startActivity(intentGrade);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_privilege:
|
case R.id.rl_privilege://我的特权
|
||||||
//我的特权
|
Intent intentPrivilege = new Intent(getActivity(), FragmentManagement.class);
|
||||||
/*Intent intentPrivilege = new Intent(getActivity(), FragmentManagement.class);
|
|
||||||
intentPrivilege.putExtra("tag",18);
|
intentPrivilege.putExtra("tag",18);
|
||||||
startActivity(intentPrivilege);*/
|
startActivity(intentPrivilege);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_map:
|
case R.id.rl_map://地图下载
|
||||||
//地图下载
|
|
||||||
Intent intentMap = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentMap = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentMap.putExtra("tag",19);
|
intentMap.putExtra("tag",19);
|
||||||
startActivity(intentMap);
|
startActivity(intentMap);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_issue:
|
case R.id.rl_issue://常见问题
|
||||||
//常见问题
|
|
||||||
Intent intentIssue = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentIssue = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentIssue.putExtra("tag",20);
|
intentIssue.putExtra("tag",20);
|
||||||
startActivity(intentIssue);
|
startActivity(intentIssue);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_contact:
|
case R.id.rl_contact://联系我们
|
||||||
//联系我们
|
|
||||||
Intent intentContact = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentContact = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentContact.putExtra("tag",21);
|
intentContact.putExtra("tag",21);
|
||||||
startActivity(intentContact);
|
startActivity(intentContact);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_set:
|
case R.id.rl_set://设置
|
||||||
//设置
|
|
||||||
Intent intentSet = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentSet = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentSet.putExtra("tag",22);
|
intentSet.putExtra("tag",22);
|
||||||
startActivity(intentSet);
|
startActivity(intentSet);
|
||||||
break;
|
break;
|
||||||
case R.id.rl_about:
|
case R.id.rl_about://关于
|
||||||
//关于
|
|
||||||
Intent intentAbout = new Intent(getActivity(), FragmentManagement.class);
|
Intent intentAbout = new Intent(getActivity(), FragmentManagement.class);
|
||||||
intentAbout.putExtra("tag",23);
|
intentAbout.putExtra("tag",23);
|
||||||
startActivity(intentAbout);
|
startActivity(intentAbout);
|
||||||
break;
|
break;
|
||||||
case R.id.btn_quit:
|
case R.id.btn_quit://退出登录
|
||||||
//退出登录
|
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,18 @@
|
|||||||
package com.navinfo.outdoor.fragment;
|
package com.navinfo.outdoor.fragment;
|
||||||
|
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 我的等级页面的fragment
|
* 我的等级页面的fragment
|
||||||
*/
|
*/
|
||||||
public class PrivilegeFragment extends BaseFragment {
|
public class PrivilegeFragment extends BaseFragment implements View.OnClickListener{
|
||||||
|
|
||||||
|
private ImageView ivPrivilege;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
return R.layout.privilege_fragment;
|
return R.layout.privilege_fragment;
|
||||||
@ -20,6 +26,16 @@ public class PrivilegeFragment extends BaseFragment {
|
|||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
|
ivPrivilege = findViewById(R.id.iv_privilege);
|
||||||
|
ivPrivilege.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
switch (v.getId()){
|
||||||
|
case R.id.iv_privilege:
|
||||||
|
getActivity().finish();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,17 @@ package com.navinfo.outdoor.fragment;
|
|||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
import android.widget.RelativeLayout;
|
||||||
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.airsaid.pickerviewlibrary.CityPickerView;
|
||||||
|
import com.airsaid.pickerviewlibrary.listener.OnSimpleCitySelectListener;
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
import com.navinfo.outdoor.activity.FragmentManagement;
|
import com.navinfo.outdoor.activity.FragmentManagement;
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
@ -25,12 +30,13 @@ public class UserDataFragment extends BaseFragment implements View.OnClickListen
|
|||||||
private Button btnGathering;
|
private Button btnGathering;
|
||||||
private Button btnAttestation;
|
private Button btnAttestation;
|
||||||
private ImageView ivUser;
|
private ImageView ivUser;
|
||||||
private EditText etRegion;
|
private TextView region;
|
||||||
private EditText etPhone;
|
private EditText etPhone;
|
||||||
private EditText etQq;
|
private EditText etQq;
|
||||||
private EditText etMailbox;
|
private EditText etMailbox;
|
||||||
public static Pattern compile = Pattern.compile("/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,})$/");
|
public static Pattern compile = Pattern.compile("/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,})$/");
|
||||||
private Button userSave;
|
private Button userSave;
|
||||||
|
private RelativeLayout rlRegion;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
@ -51,15 +57,16 @@ public class UserDataFragment extends BaseFragment implements View.OnClickListen
|
|||||||
btnAttestation.setOnClickListener(this::onClick);
|
btnAttestation.setOnClickListener(this::onClick);
|
||||||
btnGathering = findViewById(R.id.btn_gathering);
|
btnGathering = findViewById(R.id.btn_gathering);
|
||||||
btnGathering.setOnClickListener(this::onClick);
|
btnGathering.setOnClickListener(this::onClick);
|
||||||
etRegion = (EditText) findViewById(R.id.et_region);
|
region = findViewById(R.id.region);
|
||||||
etRegion.setOnClickListener(this::onClick);
|
rlRegion = findViewById(R.id.rl_region);
|
||||||
|
rlRegion.setOnClickListener(this::onClick);
|
||||||
etPhone = (EditText) findViewById(R.id.et_phone);
|
etPhone = (EditText) findViewById(R.id.et_phone);
|
||||||
etPhone.setOnClickListener(this::onClick);
|
etPhone.setOnClickListener(this::onClick);
|
||||||
etQq = (EditText) findViewById(R.id.et_qq);
|
etQq = (EditText) findViewById(R.id.edit_qq);
|
||||||
etQq.setOnClickListener(this::onClick);
|
etQq.setOnClickListener(this::onClick);
|
||||||
etMailbox = (EditText) findViewById(R.id.et_mailbox);
|
etMailbox = (EditText) findViewById(R.id.edit_mailbox);
|
||||||
etMailbox.setOnClickListener(this::onClick);
|
etMailbox.setOnClickListener(this::onClick);
|
||||||
userSave = (Button) findViewById(R.id.user_save);
|
userSave = (Button) findViewById(R.id.btn_save);
|
||||||
userSave.setOnClickListener(this::onClick);
|
userSave.setOnClickListener(this::onClick);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,6 +87,9 @@ public class UserDataFragment extends BaseFragment implements View.OnClickListen
|
|||||||
attestationIntent.putExtra("tag", 25);
|
attestationIntent.putExtra("tag", 25);
|
||||||
startActivity(attestationIntent);
|
startActivity(attestationIntent);
|
||||||
break;
|
break;
|
||||||
|
case R.id.rl_region:
|
||||||
|
initRegion();
|
||||||
|
break;
|
||||||
case R.id.et_phone:
|
case R.id.et_phone:
|
||||||
String phoneEt = etPhone.getText().toString().trim();
|
String phoneEt = etPhone.getText().toString().trim();
|
||||||
if (TextUtils.isEmpty(phoneEt)) {
|
if (TextUtils.isEmpty(phoneEt)) {
|
||||||
@ -90,17 +100,17 @@ public class UserDataFragment extends BaseFragment implements View.OnClickListen
|
|||||||
Toast.makeText(getActivity(), "手机格式有误", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), "手机格式有误", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.et_qq:
|
case R.id.edit_qq:
|
||||||
qq();
|
qq();
|
||||||
break;
|
break;
|
||||||
case R.id.et_mailbox:
|
case R.id.edit_mailbox:
|
||||||
if (isEmail(etMailbox.getText().toString().trim()) && etMailbox.getText().toString().trim().length() <= 31) {
|
if (isEmail(etMailbox.getText().toString().trim()) && etMailbox.getText().toString().trim().length() <= 31) {
|
||||||
Toast.makeText(getActivity(), "邮箱验证成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), "邮箱验证成功", Toast.LENGTH_SHORT).show();
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(getActivity(), "邮箱格式错误", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), "邮箱格式错误", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.user_save:
|
case R.id.btn_save:
|
||||||
final String userphone = etPhone.getText().toString().trim();
|
final String userphone = etPhone.getText().toString().trim();
|
||||||
final String userqq = etQq.getText().toString().trim();
|
final String userqq = etQq.getText().toString().trim();
|
||||||
final String usermailbox = etMailbox.getText().toString().trim();
|
final String usermailbox = etMailbox.getText().toString().trim();
|
||||||
@ -139,5 +149,42 @@ public class UserDataFragment extends BaseFragment implements View.OnClickListen
|
|||||||
return m.matches();
|
return m.matches();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void initRegion() {
|
||||||
|
CityPickerView mCityPickerView = new CityPickerView(getContext());
|
||||||
|
// 设置点击外部是否消失
|
||||||
|
mCityPickerView.setCancelable(true);
|
||||||
|
// 设置滚轮字体大小
|
||||||
|
// mCityPickerView.setTextSize(18f);
|
||||||
|
// 设置标题
|
||||||
|
//mCityPickerView.setTitle("");
|
||||||
|
// 设置取消文字
|
||||||
|
// mCityPickerView.setCancelText("取消");
|
||||||
|
// 设置取消文字颜色
|
||||||
|
// mCityPickerView.setCancelTextColor(Color.WHITE);
|
||||||
|
// 设置取消文字大小
|
||||||
|
//mCityPickerView.setCancelTextSize(14f);
|
||||||
|
// 设置确定文字
|
||||||
|
//mCityPickerView.setSubmitText("确定");
|
||||||
|
// 设置确定文字颜色
|
||||||
|
//mCityPickerView.setSubmitTextColor(Color.WHITE);
|
||||||
|
// 设置确定文字大小
|
||||||
|
// mCityPickerView.setSubmitTextSize(14f);
|
||||||
|
// 设置头部背景
|
||||||
|
// mCityPickerView.setHeadBackgroundColor(Color.BLUE);
|
||||||
|
mCityPickerView.setOnCitySelectListener(new OnSimpleCitySelectListener(){
|
||||||
|
@Override
|
||||||
|
public void onCitySelect(String prov, String city, String area) {
|
||||||
|
// 省、市、区 分开获取
|
||||||
|
Log.d("TAG", "省: " + prov + " 市: " + city + " 区: " + area);
|
||||||
|
region.setText(prov+"-"+city+"-"+area+"");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCitySelect(String str) {
|
||||||
|
// 一起获取
|
||||||
|
//Toast.makeText(getContext(), "选择了:" + str, Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mCityPickerView.show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
package com.navinfo.outdoor.fragment;
|
package com.navinfo.outdoor.fragment;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.navinfo.outdoor.R;
|
import com.navinfo.outdoor.R;
|
||||||
|
import com.navinfo.outdoor.activity.FragmentManagement;
|
||||||
import com.navinfo.outdoor.base.BaseFragment;
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,6 +15,8 @@ import com.navinfo.outdoor.base.BaseFragment;
|
|||||||
public class WithdrawFragment extends BaseFragment implements View.OnClickListener{
|
public class WithdrawFragment extends BaseFragment implements View.OnClickListener{
|
||||||
|
|
||||||
private ImageView ivWithDraw;
|
private ImageView ivWithDraw;
|
||||||
|
private TextView tvText;
|
||||||
|
private TextView tvAll ,tvUnit,tvAlready,tvTotal;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
@ -26,8 +31,15 @@ public class WithdrawFragment extends BaseFragment implements View.OnClickListen
|
|||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
|
tvUnit = findViewById(R.id.tv_unit);//可提现
|
||||||
|
tvAlready = findViewById(R.id.tv_already);//以提现
|
||||||
|
tvTotal = findViewById(R.id.tv_total);//总资产
|
||||||
|
tvAll = findViewById(R.id.tv_all);
|
||||||
|
tvAll.setOnClickListener(this::onClick);
|
||||||
ivWithDraw = findViewById(R.id.iv_withdraw);
|
ivWithDraw = findViewById(R.id.iv_withdraw);
|
||||||
ivWithDraw.setOnClickListener(this);
|
ivWithDraw.setOnClickListener(this);
|
||||||
|
tvText = findViewById(R.id.tv_text);
|
||||||
|
tvText.setOnClickListener(this::onClick);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -36,6 +48,11 @@ public class WithdrawFragment extends BaseFragment implements View.OnClickListen
|
|||||||
case R.id.iv_withdraw:
|
case R.id.iv_withdraw:
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
break;
|
break;
|
||||||
|
case R.id.tv_text:
|
||||||
|
Intent intentText = new Intent(getActivity(), FragmentManagement.class);
|
||||||
|
intentText.putExtra("tag",26);
|
||||||
|
startActivity(intentText);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
package com.navinfo.outdoor.fragment;
|
||||||
|
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
|
import com.navinfo.outdoor.R;
|
||||||
|
import com.navinfo.outdoor.base.BaseFragment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现记录:
|
||||||
|
*/
|
||||||
|
public class WithdrawalRecordFragment extends BaseFragment implements View.OnClickListener{
|
||||||
|
|
||||||
|
private ImageView ivWithdraw;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getLayout() {
|
||||||
|
return R.layout.withdrawal_record_fragment;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initView() {
|
||||||
|
super.initView();
|
||||||
|
ivWithdraw = findViewById(R.id.iv_withdraw);
|
||||||
|
ivWithdraw.setOnClickListener(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initData() {
|
||||||
|
super.initData();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
switch (v.getId()){
|
||||||
|
case R.id.iv_withdraw:
|
||||||
|
getActivity().finish();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
7
app/src/main/res/drawable/underline.xml
Normal file
7
app/src/main/res/drawable/underline.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="#fff"/>
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#FF9800"/>
|
||||||
|
</shape>
|
@ -61,7 +61,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:text="企鹅汇图"
|
android:text="地图寻宝"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="20sp"
|
android:textSize="20sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
@ -102,7 +102,7 @@
|
|||||||
style="@style/main_about_text_style"
|
style="@style/main_about_text_style"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="关于企鹅汇图" />
|
android:text="关于地图寻宝" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -131,7 +131,7 @@
|
|||||||
style="@style/main_about_text_style"
|
style="@style/main_about_text_style"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="企鹅汇图服务协议条款" />
|
android:text="地图寻宝服务协议条款" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -160,7 +160,7 @@
|
|||||||
style="@style/main_about_text_style"
|
style="@style/main_about_text_style"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="关于企鹅汇图" />
|
android:text="地图寻宝隐私保护指引" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -95,11 +95,12 @@
|
|||||||
android:textColor="#333"
|
android:textColor="#333"
|
||||||
android:text="持 卡 人:" />
|
android:text="持 卡 人:" />
|
||||||
|
|
||||||
<EditText
|
<TextView
|
||||||
|
android:id="@+id/tv_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:hint="持卡人姓名" />
|
android:hint="持卡人姓名" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<View
|
<View
|
||||||
@ -180,7 +181,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:text="绑定银行卡"
|
android:text="绑定银行卡"
|
||||||
android:textColor="#fff"
|
|
||||||
/>
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -1,6 +1,34 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/rl_grade"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="#1BA5F1"
|
||||||
|
android:paddingTop="@dimen/top_pind_sp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_grade"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:src="@drawable/icon_arrow"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_grade"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
style="@style/text_style_toolbar_title"
|
||||||
|
android:layout_toRightOf="@id/iv_find_task"
|
||||||
|
android:text="我的等级" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -66,4 +66,5 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/linearLayout2" />
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout2" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -31,10 +31,9 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image_heard"
|
android:id="@+id/image_heard"
|
||||||
android:layout_width="40dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="50dp"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:background="@drawable/icon_task_specification"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
@ -128,9 +127,9 @@
|
|||||||
android:id="@+id/linearLayout"
|
android:id="@+id/linearLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_marginLeft="40dp"
|
android:layout_marginLeft="35dp"
|
||||||
android:layout_marginTop="60dp"
|
android:layout_marginTop="60dp"
|
||||||
android:layout_marginRight="40dp"
|
android:layout_marginRight="35dp"
|
||||||
android:layout_marginBottom="20dp"
|
android:layout_marginBottom="20dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
@ -143,6 +142,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_marginTop="18dp"
|
android:layout_marginTop="18dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="?android:attr/selectableItemBackground">
|
android:background="?android:attr/selectableItemBackground">
|
||||||
|
|
||||||
@ -172,19 +172,31 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:background="?android:attr/selectableItemBackground">
|
||||||
android:gravity="center_vertical">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="我的特权"
|
android:text="我的特权"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
style="@style/main_text_style" />
|
style="@style/main_text_style" />
|
||||||
|
<TextView
|
||||||
|
android:layout_width="60dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:text="new"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
style="@style/main_outLogin_style"
|
||||||
|
android:layout_toLeftOf="@id/image_view"
|
||||||
|
|
||||||
|
/>
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/image_view"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
android:background="@drawable/ic_baseline_arrow_forward"
|
android:background="@drawable/ic_baseline_arrow_forward"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
@ -207,7 +219,15 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="地图下载"
|
android:text="地图下载"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
style="@style/main_text_style" />
|
style="@style/main_text_style" />
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="@drawable/ic_baseline_arrow_forward"
|
||||||
|
android:textSize="18sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -227,7 +247,15 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="常见问题"
|
android:text="常见问题"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
style="@style/main_text_style"/>
|
style="@style/main_text_style"/>
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="@drawable/ic_baseline_arrow_forward"
|
||||||
|
android:textSize="18sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -247,7 +275,15 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="联系我们"
|
android:text="联系我们"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
style="@style/main_text_style" />
|
style="@style/main_text_style" />
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="@drawable/ic_baseline_arrow_forward"
|
||||||
|
android:textSize="18sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -267,7 +303,15 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="设置"
|
android:text="设置"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
style="@style/main_text_style" />
|
style="@style/main_text_style" />
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="@drawable/ic_baseline_arrow_forward"
|
||||||
|
android:textSize="18sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -282,12 +326,19 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="关于"
|
android:text="关于"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
style="@style/main_text_style" />
|
style="@style/main_text_style" />
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="@drawable/ic_baseline_arrow_forward"
|
||||||
|
android:textSize="18sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
@ -1,6 +1,33 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/rl_privilege"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="#1BA5F1"
|
||||||
|
android:paddingTop="@dimen/top_pind_sp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_privilege"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:src="@drawable/icon_arrow"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_privilege"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
style="@style/text_style_toolbar_title"
|
||||||
|
android:layout_toRightOf="@id/iv_find_task"
|
||||||
|
android:text="我的等级" />
|
||||||
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -31,7 +31,6 @@
|
|||||||
android:layout_toRightOf="@id/iv_find_task"
|
android:layout_toRightOf="@id/iv_find_task"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="实名认证"
|
android:text="实名认证"
|
||||||
|
|
||||||
android:textColor="#fff"
|
android:textColor="#fff"
|
||||||
android:textSize="17sp"
|
android:textSize="17sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="#1BA5F1"
|
android:background="#1BA5F1"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingTop="@dimen/top_pind_sp"
|
android:paddingTop="@dimen/top_pind_sp"
|
||||||
|
android:orientation="horizontal"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
@ -21,12 +21,13 @@
|
|||||||
android:layout_height="45dp"
|
android:layout_height="45dp"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_marginLeft="15dp"
|
android:layout_marginLeft="15dp"
|
||||||
android:src="@drawable/icon_arrow" />
|
android:src="@drawable/icon_arrow"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_user"
|
android:id="@+id/tv_user"
|
||||||
style="@style/text_style_toolbar_title"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
style="@style/text_style_toolbar_title"
|
||||||
android:layout_toRightOf="@id/iv_find_task"
|
android:layout_toRightOf="@id/iv_find_task"
|
||||||
android:text="用户资料" />
|
android:text="用户资料" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -36,10 +37,10 @@
|
|||||||
style="@style/text_style"
|
style="@style/text_style"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="20dp"
|
|
||||||
android:text="账号信息"
|
android:text="账号信息"
|
||||||
app:layout_constraintBottom_toTopOf="@id/linearLayout"
|
android:layout_margin="20dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/linearLayout"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/rl_user" />
|
app:layout_constraintTop_toBottomOf="@+id/rl_user" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -62,13 +63,12 @@
|
|||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:text="实名认证"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="实名认证" />
|
android:layout_centerVertical="true"
|
||||||
|
style="@style/user_text_style" />
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_attestation"
|
android:id="@+id/btn_attestation"
|
||||||
style="@style/user_style"
|
style="@style/user_style"
|
||||||
@ -93,23 +93,24 @@
|
|||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:text="收款信息"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="收款信息" />
|
android:layout_centerVertical="true"
|
||||||
|
style="@style/user_text_style"
|
||||||
|
/>
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_gathering"
|
android:id="@+id/btn_gathering"
|
||||||
style="@style/user_style"
|
|
||||||
android:layout_width="70dp"
|
android:layout_width="70dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:text="去绑定"
|
android:text="去绑定"
|
||||||
android:textColor="#fff" />
|
android:textColor="#fff"
|
||||||
|
style="@style/user_style"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -118,6 +119,7 @@
|
|||||||
android:background="#F1F0F0" />
|
android:background="#F1F0F0" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:id="@+id/rl_region"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
@ -125,21 +127,22 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_region"
|
android:id="@+id/tv_region"
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="80dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:text="所在地区*"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="所在地区*" />
|
style="@style/user_text_style"
|
||||||
|
/>
|
||||||
<EditText
|
<TextView
|
||||||
android:id="@+id/et_region"
|
android:id="@+id/region"
|
||||||
style="@style/user_hint_style"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_toRightOf="@id/tv_region"
|
android:layout_toRightOf="@id/tv_region"
|
||||||
android:hint="请选择所在区域" />
|
android:layout_width="wrap_content"
|
||||||
|
style="@style/user_hint_style"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:hint="请选择所在区域"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -155,21 +158,22 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_number"
|
android:id="@+id/tv_number"
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="80dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:text="手机号码*"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="手机号码*" />
|
style="@style/user_text_style"
|
||||||
|
/>
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/et_phone"
|
android:id="@+id/et_phone"
|
||||||
style="@style/user_hint_style"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_toRightOf="@id/tv_number"
|
android:layout_toRightOf="@id/tv_number"
|
||||||
android:hint="请输入手机号码" />
|
android:layout_width="wrap_content"
|
||||||
|
style="@style/user_hint_style"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:hint="请输入手机号码"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -185,21 +189,22 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_qq"
|
android:id="@+id/tv_qq"
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="80dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:text="QQ号码*"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="QQ号码*" />
|
style="@style/user_text_style"
|
||||||
|
/>
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/et_qq"
|
android:id="@+id/edit_qq"
|
||||||
style="@style/user_hint_style"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_toRightOf="@id/tv_qq"
|
android:layout_toRightOf="@id/tv_qq"
|
||||||
android:hint="请输入QQ号码" />
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:hint="请输入QQ号码 "
|
||||||
|
style="@style/user_hint_style"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -215,21 +220,22 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_mailbox"
|
android:id="@+id/tv_mailbox"
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="80dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:text="电子邮箱*"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="电子邮箱*" />
|
style="@style/user_text_style"
|
||||||
|
/>
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/et_mailbox"
|
android:id="@+id/edit_mailbox"
|
||||||
style="@style/user_hint_style"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_toRightOf="@id/tv_mailbox"
|
android:layout_toRightOf="@id/tv_mailbox"
|
||||||
android:hint="请输入邮箱地址" />
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:hint="请输入邮箱地址"
|
||||||
|
style="@style/user_hint_style"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -243,35 +249,36 @@
|
|||||||
android:layout_weight="1">
|
android:layout_weight="1">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/user_text_style"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:text="微信"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
android:text="微信" />
|
android:layout_centerVertical="true"
|
||||||
|
style="@style/user_text_style"
|
||||||
|
/>
|
||||||
<Button
|
<Button
|
||||||
style="@style/user_style"
|
|
||||||
android:layout_width="70dp"
|
android:layout_width="70dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:text="去绑定"
|
android:text="去绑定"
|
||||||
android:textColor="#fff" />
|
android:textColor="#fff"
|
||||||
|
style="@style/user_style"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:background="#F1F0F0" />
|
android:background="#F1F0F0" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/user_save"
|
android:id="@+id/btn_save"
|
||||||
style="@style/user_data_style"
|
android:layout_marginTop="50dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="50dp"
|
android:text="保存"
|
||||||
android:text="保存" />
|
style="@style/main_style"
|
||||||
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -47,7 +47,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="200dp"
|
android:layout_height="200dp"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:background="@mipmap/white_bg"
|
android:background="#fff"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/linear_hint"
|
app:layout_constraintEnd_toEndOf="@+id/linear_hint"
|
||||||
app:layout_constraintStart_toStartOf="@+id/linear_hint"
|
app:layout_constraintStart_toStartOf="@+id/linear_hint"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/rl_withdraw">
|
app:layout_constraintTop_toBottomOf="@+id/rl_withdraw">
|
||||||
@ -56,7 +56,8 @@
|
|||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_marginLeft="20dp"
|
||||||
android:text="可提现(元)"
|
android:text="可提现(元)"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
@ -65,7 +66,7 @@
|
|||||||
android:id="@+id/tv_unit"
|
android:id="@+id/tv_unit"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:text="0.0"
|
android:text="0.0"
|
||||||
android:textColor="#333"
|
android:textColor="#333"
|
||||||
android:textSize="45sp"
|
android:textSize="45sp"
|
||||||
@ -95,6 +96,7 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@+id/tv_text" />
|
app:layout_constraintTop_toBottomOf="@+id/tv_text" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/tv_already"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="0.0"
|
android:text="0.0"
|
||||||
@ -116,6 +118,7 @@
|
|||||||
app:layout_constraintStart_toEndOf="@+id/tv_already_withdraw"
|
app:layout_constraintStart_toEndOf="@+id/tv_already_withdraw"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_text" />
|
app:layout_constraintTop_toBottomOf="@+id/tv_text" />
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/tv_total"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="0.0"
|
android:text="0.0"
|
||||||
@ -132,9 +135,11 @@
|
|||||||
android:id="@+id/relativeLayout2"
|
android:id="@+id/relativeLayout2"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="25dp"
|
||||||
|
android:layout_marginTop="100dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/linear_layout">
|
app:layout_constraintTop_toBottomOf="@+id/linear_layout">
|
||||||
|
|
||||||
@ -191,7 +196,7 @@
|
|||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_margin="20dp"
|
android:layout_margin="20dp"
|
||||||
android:text="立即提现"
|
android:text="立即提现"
|
||||||
style="@style/user_data_style"
|
style="@style/main_style"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/checkBox" />
|
app:layout_constraintTop_toBottomOf="@+id/checkBox" />
|
||||||
@ -213,10 +218,11 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="20dp"
|
android:layout_marginLeft="20dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
android:layout_marginRight="20dp"
|
android:layout_marginRight="20dp"
|
||||||
android:background="#fff"
|
android:background="#fff"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginTop="20dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tv_infuse">
|
app:layout_constraintTop_toBottomOf="@id/tv_infuse">
|
||||||
@ -225,33 +231,34 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image_poi"
|
android:id="@+id/image_poi"
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="2dp"
|
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:background="@drawable/icon_task_specification"
|
android:layout_margin="2dp"
|
||||||
/>
|
android:background="@drawable/icon_task_specification" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="POI"
|
|
||||||
android:layout_marginLeft="20dp"
|
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginLeft="20dp"
|
||||||
android:layout_toRightOf="@id/image_poi"
|
android:layout_toRightOf="@id/image_poi"
|
||||||
|
android:text="POI"
|
||||||
android:textColor="#333"
|
android:textColor="#333"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_height="wrap_content"
|
android:gravity="center_vertical"
|
||||||
android:text="+¥0.0"
|
android:text="+¥0.0"
|
||||||
android:textColor="#333"
|
android:textColor="#333"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp" />
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
@ -267,10 +274,10 @@
|
|||||||
android:id="@+id/image_way"
|
android:id="@+id/image_way"
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="2dp"
|
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:background="@drawable/icon_task_specification"
|
android:layout_margin="2dp"
|
||||||
/>
|
android:background="@drawable/icon_task_specification" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
37
app/src/main/res/layout/withdrawal_record_fragment.xml
Normal file
37
app/src/main/res/layout/withdrawal_record_fragment.xml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/rl_withdraw"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@color/colorPrimaryBlue"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingTop="@dimen/top_pind_sp"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_withdraw"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:src="@drawable/ic_baseline_arrow" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_withdraw"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:layout_toRightOf="@id/iv_find_task"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="提现记录"
|
||||||
|
android:textColor="#fff"
|
||||||
|
android:textSize="17sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</LinearLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
x
Reference in New Issue
Block a user