"我的"界面搭建完成

This commit is contained in:
wds 2021-05-31 19:04:54 +08:00
parent 90d1237a22
commit aa4d7198b8
32 changed files with 1255 additions and 31 deletions

2
.idea/misc.xml generated
View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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" />
</component>
<component name="ProjectType">

View File

@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
ndkVersion '23.0.7123448'
// ndkVersion '23.0.7123448'
defaultConfig {
applicationId "com.example.myapplication"

View File

@ -14,12 +14,12 @@
android:name=".api.UserApplication"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme.NoActionBar">
<!-- <meta-data
<meta-data
android:name="design_width_in_dp"
android:value="480"/>
<meta-data
android:name="design_height_in_dp"
android:value="800"/>-->
android:value="800"/>
<activity android:name=".activity.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -6,14 +6,22 @@ import android.view.KeyEvent;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseActivity;
import com.example.myapplication.fragment.AboutFragment;
import com.example.myapplication.fragment.CapacityEvaluationFragment;
import com.example.myapplication.fragment.CapacityEvaluationFragment2;
import com.example.myapplication.fragment.CapacityMeasurementFragment;
import com.example.myapplication.fragment.ContactFragment;
import com.example.myapplication.fragment.EventPrefectureFragment;
import com.example.myapplication.fragment.FindFragment;
import com.example.myapplication.fragment.ForgetPawFragment;
import com.example.myapplication.fragment.GatheringFragment;
import com.example.myapplication.fragment.GradeFragment;
import com.example.myapplication.fragment.IssueFragment;
import com.example.myapplication.fragment.MapDownloadFragment;
import com.example.myapplication.fragment.MineFragment;
import com.example.myapplication.fragment.PrivilegeFragment;
import com.example.myapplication.fragment.RecordFragment;
import com.example.myapplication.fragment.SetFragment;
import com.example.myapplication.fragment.TaskExWebFragment;
import com.example.myapplication.fragment.TaskExplainFragment;
import com.example.myapplication.fragment.TaskExplainFragment2;
@ -21,6 +29,8 @@ import com.example.myapplication.fragment.TaskPrefectureFragment;
import com.example.myapplication.fragment.RegisterFragment;
import com.example.myapplication.fragment.TreasureFragment;
import com.example.myapplication.fragment.UserDataFragment;
import com.example.myapplication.fragment.WithdrawFragment;
import com.gyf.immersionbar.ImmersionBar;
@ -49,7 +59,16 @@ public class FragmentManagement extends BaseActivity {
private CapacityEvaluationFragment2 capacityEvaluationFragment2;//发现-能力测评2的fragment -12
private TaskExWebFragment taskExWebFragment;//发现-任务说明点击Item进入Web页面的fragment -13
private CapacityMeasurementFragment capacityMeasurementFragment;//发现-能力测评item点击跳转web的fragment -14
private WithdrawFragment withdrawFragment;//我的-提现的fragment -15
private UserDataFragment userDataFragment;//我的-用户资料的fragment -16
private GradeFragment gradeFragment;//我的-我的等级的fragment -17
private PrivilegeFragment privilegeFragment;//我的-我的特权的fragment -18
private MapDownloadFragment mapDownloadFragment;//我的-地图下载的fragment -19
private IssueFragment issueFragment;//我的-常见问题的fragment -20
private ContactFragment contactFragment;//我的-联系我们的fragment -21
private SetFragment setFragment;//我的-设置的fragment -22
private AboutFragment aboutFragment;//我的-关于的fragment -23
private GatheringFragment gatheringFragment;//我的-用户资料-收款信息的fragment -24
@Override
@ -98,6 +117,27 @@ public class FragmentManagement extends BaseActivity {
fragmentTransaction.hide(taskExWebFragment);
if (capacityMeasurementFragment != null)//发现-能力测评item点击跳转web的fragment -14
fragmentTransaction.hide(capacityMeasurementFragment);
if (withdrawFragment != null)//我的-提现的fragment -15
fragmentTransaction.hide(withdrawFragment);
if (userDataFragment != null)//我的-用户资料的fragment -16
fragmentTransaction.hide(userDataFragment);
if (gradeFragment != null)//我的-我的等级的fragment -17
fragmentTransaction.hide(gradeFragment);
if (privilegeFragment != null)//我的-我的特权的fragment -18
fragmentTransaction.hide(privilegeFragment);
if (mapDownloadFragment != null)//我的-地图下载的fragment -19
fragmentTransaction.hide(mapDownloadFragment);
if (issueFragment != null)//我的-常见问题的fragment -20
fragmentTransaction.hide(issueFragment);
if (contactFragment != null)//我的-联系我们的fragment -21
fragmentTransaction.hide(contactFragment);
if (setFragment != null)//我的-设置的fragment -22
fragmentTransaction.hide(setFragment);
if (aboutFragment != null)//我的-关于的fragment -23
fragmentTransaction.hide(aboutFragment);
if (gatheringFragment != null)//我的-用户资料-收款信息的fragment -24
fragmentTransaction.hide(gatheringFragment);
}
@ -220,6 +260,86 @@ public class FragmentManagement extends BaseActivity {
fragmentTransaction.show(capacityMeasurementFragment);
}
break;
case 15://我的-提现的fragment
if (withdrawFragment == null) {
withdrawFragment = new WithdrawFragment();
fragmentTransaction.add(R.id.frame_layout, withdrawFragment);
} else {
fragmentTransaction.show(withdrawFragment);
}
break;
case 16://我的-用户资料的fragment
if (userDataFragment == null) {
userDataFragment = new UserDataFragment();
fragmentTransaction.add(R.id.frame_layout, userDataFragment);
} else {
fragmentTransaction.show(userDataFragment);
}
break;
case 17://我的-我的等级的fragment
if (gradeFragment == null) {
gradeFragment = new GradeFragment();
fragmentTransaction.add(R.id.frame_layout, gradeFragment);
} else {
fragmentTransaction.show(gradeFragment);
}
break;
case 18://我的-我的特权的fragment
if (privilegeFragment == null) {
privilegeFragment = new PrivilegeFragment();
fragmentTransaction.add(R.id.frame_layout, privilegeFragment);
} else {
fragmentTransaction.show(privilegeFragment);
}
break;
case 19://我的-地图下载的fragment
if (mapDownloadFragment == null) {
mapDownloadFragment = new MapDownloadFragment();
fragmentTransaction.add(R.id.frame_layout, mapDownloadFragment);
} else {
fragmentTransaction.show(mapDownloadFragment);
}
break;
case 20://我的-常见问题的fragment
if (issueFragment == null) {
issueFragment = new IssueFragment();
fragmentTransaction.add(R.id.frame_layout, issueFragment);
} else {
fragmentTransaction.show(issueFragment);
}
break;
case 21://我的-联系我们的fragment
if (contactFragment == null) {
contactFragment = new ContactFragment();
fragmentTransaction.add(R.id.frame_layout, contactFragment);
} else {
fragmentTransaction.show(contactFragment);
}
break;
case 22://我的-设置的fragment
if (setFragment == null) {
setFragment = new SetFragment();
fragmentTransaction.add(R.id.frame_layout, setFragment);
} else {
fragmentTransaction.show(setFragment);
}
break;
case 23://我的-关于的fragment
if (aboutFragment == null) {
aboutFragment = new AboutFragment();
fragmentTransaction.add(R.id.frame_layout, aboutFragment);
} else {
fragmentTransaction.show(aboutFragment);
}
break;
case 24://我的-用户资料-收款信息的fragment
if (gatheringFragment == null) {
gatheringFragment = new GatheringFragment();
fragmentTransaction.add(R.id.frame_layout, gatheringFragment);
} else {
fragmentTransaction.show(gatheringFragment);
}
break;
}
fragmentTransaction.commit();
}
@ -253,7 +373,7 @@ public class FragmentManagement extends BaseActivity {
taskExplainFragment.onActivityResult(requestCode, resultCode, data);
break;
case 9:
eventPrefectureFragment.onActivityResult(requestCode,resultCode,data);
eventPrefectureFragment.onActivityResult(requestCode, resultCode, data);
break;
case 10:
taskExplainFragment2.onActivityResult(requestCode, resultCode, data);
@ -261,15 +381,44 @@ public class FragmentManagement extends BaseActivity {
case 11:
capacityEvaluationFragment.onActivityResult(requestCode, resultCode, data);
break;
case 12:
case 12:
capacityEvaluationFragment2.onActivityResult(requestCode, resultCode, data);
break;
case 13:
taskExWebFragment.onActivityResult(requestCode, resultCode, data);
case 13:
taskExWebFragment.onActivityResult(requestCode, resultCode, data);
break;
case 14:
capacityMeasurementFragment.onActivityResult(requestCode, resultCode, data);
case 14:
capacityMeasurementFragment.onActivityResult(requestCode, resultCode, data);
break;
case 15:
withdrawFragment.onActivityResult(requestCode, resultCode, data);
break;
case 16:
userDataFragment.onActivityResult(requestCode, resultCode, data);
break;
case 17:
gradeFragment.onActivityResult(requestCode, resultCode, data);
break;
case 18:
privilegeFragment.onActivityResult(requestCode, resultCode, data);
break;
case 19:
mapDownloadFragment.onActivityResult(requestCode, resultCode, data);
break;
case 20:
issueFragment.onActivityResult(requestCode, resultCode, data);
break;
case 21:
contactFragment.onActivityResult(requestCode, resultCode, data);
break;
case 22:
setFragment.onActivityResult(requestCode, resultCode, data);
break;
case 23:
aboutFragment.onActivityResult(requestCode, resultCode, data);
break;
case 24:
gatheringFragment.onActivityResult(requestCode, resultCode, data);
break;
}

View File

@ -48,13 +48,6 @@ public class WebActivity extends BaseActivity implements View.OnClickListener {
@Override
protected void initView() {
super.initView();
char A = 65;
for (int i = 0; i < 8; i++) {
String title = "选项"+(A++);
System.out.println(title);
}
ImmersionBar.with(this)
.statusBarDarkFont(true, 0.2f)
//原理如果当前设备支持状态栏字体变色会设置状态栏字体为黑色如果当前设备不支持状态栏字体变色会使当前状态栏加上透明度否则不执行透明度

View File

@ -95,9 +95,6 @@ public class CapacityMeasureAdapter extends RecyclerView.Adapter<CapacityMeasure
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
checkedChangeRadioButton(parentLayout, buttonView);
Toast.makeText(context, "option" + option, Toast.LENGTH_SHORT).show();
updateCheckedMap(questionId, buttonView, parentLayout);
}

View File

@ -0,0 +1,25 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 关于页面的fragment
*/
public class AboutFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.about_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -54,14 +54,13 @@ public class CapacityMeasurementFragment extends BaseFragment implements View.On
protected void initView() {
super.initView();
ivMeasurementFinish = (ImageView) findViewById(R.id.iv_measurement_finish);
btn = findViewById(R.id.btn);
btn.setOnClickListener(this::onClick);
capacityMeasurementRel = (RecyclerView) findViewById(R.id.capacity_measurementRel);
ivMeasurementFinish.setOnClickListener(this::onClick);
capacityMeasurementRel.setLayoutManager(new LinearLayoutManager(getActivity()));
capacityMeasureAdapter = new CapacityMeasureAdapter(getActivity());
capacityMeasurementRel.setAdapter(capacityMeasureAdapter);
btn = findViewById(R.id.btn);
btn.setOnClickListener(this::onClick);
}
@ -70,7 +69,6 @@ public class CapacityMeasurementFragment extends BaseFragment implements View.On
super.initData();
bolbean = new ArrayList<>();
examBeans = new ArrayList<>();
initNetWorks(true);
}

View File

@ -0,0 +1,24 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 联系我们的Fragment
*/
public class ContactFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.contact_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -0,0 +1,24 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 收款信息
*/
public class GatheringFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.gathering_fragment;
}
@Override
protected void initView() {
super.initView();
}
@Override
protected void initData() {
super.initData();
}
}

View File

@ -0,0 +1,25 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 我的等级页面的fragment
*/
public class GradeFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.grade_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -0,0 +1,25 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 常见问题页面的fragment
*/
public class IssueFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.issue_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -0,0 +1,26 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 地图下载的Fragment
*/
public class MapDownloadFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.map_download_fragment;
}
@Override
protected void initView() {
super.initView();
}
@Override
protected void initData() {
super.initData();
}
}

View File

@ -1,6 +1,16 @@
package com.example.myapplication.fragment;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.example.myapplication.R;
import com.example.myapplication.activity.FragmentManagement;
import com.example.myapplication.activity.LoginActivity;
import com.example.myapplication.base.BaseFragment;
import com.gyf.immersionbar.ImmersionBar;
@ -8,7 +18,13 @@ import com.gyf.immersionbar.ImmersionBar;
* 我的Fragment
* 2021-5-25
*/
public class MineFragment extends BaseFragment {
public class MineFragment extends BaseFragment implements View.OnClickListener{
private ImageView imageHeard ,imageShare, imageSign;
private TextView tvName, tvMoney;
private Button btnWithdraw,btnQuit;
private RelativeLayout rlGrade, rlPrivilege, rlMap, rlIssue, rlContact, rlSet, rlAbout;
@Override
protected int getLayout() {
return R.layout.mine_fragment;
@ -17,10 +33,109 @@ public class MineFragment extends BaseFragment {
@Override
protected void initView() {
super.initView();
imageHeard = findViewById(R.id.image_heard);
imageHeard.setOnClickListener(this::onClick);
tvName = findViewById(R.id.tv_name);
tvName.setOnClickListener(this::onClick);
tvMoney = findViewById(R.id.tv_money);
imageShare = findViewById(R.id.image_share);
imageShare.setOnClickListener(this::onClick);
imageSign = findViewById(R.id.image_sign);
imageSign.setOnClickListener(this::onClick);
btnWithdraw = findViewById(R.id.btn_withdraw);
btnWithdraw.setOnClickListener(this::onClick);
rlGrade = findViewById(R.id.rl_grade);
rlGrade.setOnClickListener(this::onClick);
rlPrivilege = findViewById(R.id.rl_privilege);
rlPrivilege.setOnClickListener(this::onClick);
rlMap = findViewById(R.id.rl_map);
rlMap.setOnClickListener(this::onClick);
rlIssue = findViewById(R.id.rl_issue);
rlIssue.setOnClickListener(this::onClick);
rlContact = findViewById(R.id.rl_contact);
rlContact.setOnClickListener(this::onClick);
rlSet = findViewById(R.id.rl_set);
rlSet.setOnClickListener(this::onClick);
rlAbout = findViewById(R.id.rl_about);
rlAbout.setOnClickListener(this::onClick);
btnQuit = findViewById(R.id.btn_quit);
btnQuit.setOnClickListener(this::onClick);
}
@Override
protected void initData() {
super.initData();
}
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.image_heard:
case R.id.tv_name:
//跳转到个人信息
Intent intentUser = new Intent(getActivity(), FragmentManagement.class);
intentUser.putExtra("tag",16);
startActivity(intentUser);
break;
case R.id.image_share://分享
break;
case R.id.image_sign://签到
break;
case R.id.btn_withdraw:
//提现页面
Intent intentWithdraw = new Intent(getActivity(), FragmentManagement.class);
intentWithdraw.putExtra("tag",15);
startActivity(intentWithdraw);
break;
case R.id.rl_grade:
//我的等级
Intent intentGrade = new Intent(getActivity(), FragmentManagement.class);
intentGrade.putExtra("tag",17);
startActivity(intentGrade);
break;
case R.id.rl_privilege:
//我的特权
Intent intentPrivilege = new Intent(getActivity(), FragmentManagement.class);
intentPrivilege.putExtra("tag",18);
startActivity(intentPrivilege);
break;
case R.id.rl_map:
//地图下载
Intent intentMap = new Intent(getActivity(), FragmentManagement.class);
intentMap.putExtra("tag",19);
startActivity(intentMap);
break;
case R.id.rl_issue:
//常见问题
Intent intentIssue = new Intent(getActivity(), FragmentManagement.class);
intentIssue.putExtra("tag",20);
startActivity(intentIssue);
break;
case R.id.rl_contact:
//联系我们
Intent intentContact = new Intent(getActivity(), FragmentManagement.class);
intentContact.putExtra("tag",21);
startActivity(intentContact);
break;
case R.id.rl_set:
//设置
Intent intentSet = new Intent(getActivity(), FragmentManagement.class);
intentSet.putExtra("tag",22);
startActivity(intentSet);
break;
case R.id.rl_about:
//关于
Intent intentAbout = new Intent(getActivity(), FragmentManagement.class);
intentAbout.putExtra("tag",23);
startActivity(intentAbout);
break;
case R.id.btn_quit:
//退出登录
getActivity().finish();
break;
}
}
}

View File

@ -0,0 +1,25 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 我的等级页面的fragment
*/
public class PrivilegeFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.privilege_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -0,0 +1,24 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 设置页面的fragment
*/
public class SetFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.set_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -98,8 +98,7 @@ public class TaskExplainFragment extends BaseFragment implements View.OnClickLis
public void onSuccess(TaskExplainInfo response, int id) {
dismissLoadingDialog();
taskExplainAdapter.setExplainList(response.getBody().getData());
Log.d("TAG", "onSuccess: " + response.getMsg() + "sssssssssssss");
Toast.makeText(getActivity(), response.getMsg() + "", Toast.LENGTH_SHORT).show();
Log.d("TAG", "onSuccess: " + response.getMsg() + "");
}
@Override

View File

@ -0,0 +1,68 @@
package com.example.myapplication.fragment;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import com.example.myapplication.R;
import com.example.myapplication.activity.FragmentManagement;
import com.example.myapplication.base.BaseFragment;
import static android.app.Activity.RESULT_OK;
/**
* 用户资料的fragment
*/
public class UserDataFragment extends BaseFragment implements View.OnClickListener{
private Button btnGathering;
private Button btnAttestation;
private ImageView imageView;
@Override
protected int getLayout() {
return R.layout.user_data_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
btnAttestation = findViewById(R.id.btn_attestation);
btnAttestation.setOnClickListener(this::onClick);
btnGathering = findViewById(R.id.btn_gathering);
btnGathering.setOnClickListener(this::onClick);
}
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.btn_gathering:
Intent gatheringIntent = new Intent(getActivity(), FragmentManagement.class);
gatheringIntent.putExtra("tag",24);
startActivity(gatheringIntent);
break;
}
}
@Override
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode==RESULT_OK){
Bundle extras=data.getExtras();//从Intent中获取附加值
Bitmap bitmap=(Bitmap) extras.get("data");//从附加值中获取返回的图像
imageView.setImageBitmap(bitmap);//显示图像
}
}
}

View File

@ -0,0 +1,25 @@
package com.example.myapplication.fragment;
import com.example.myapplication.R;
import com.example.myapplication.base.BaseFragment;
/**
* 提现页面的fragment
*/
public class WithdrawFragment extends BaseFragment {
@Override
protected int getLayout() {
return R.layout.withdraw_fragment;
}
@Override
protected void initData() {
super.initData();
}
@Override
protected void initView() {
super.initView();
}
}

View File

@ -0,0 +1,5 @@
<vector android:alpha="0.91" android:height="20dp"
android:tint="#919191" android:viewportHeight="24"
android:viewportWidth="24" android:width="20dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M5.88,4.12L13.76,12l-7.88,7.88L8,22l10,-10L8,2z"/>
</vector>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -34,7 +34,7 @@
android:layout_toRightOf="@id/iv_find_task"
android:gravity="center"
android:text="能力测评"
android:textColor="#000"
android:textColor="#fff"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>

View File

@ -0,0 +1,54 @@
<?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_gathering"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryBlue"
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_gathering"
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_gathering"
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>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_margin="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rl_gathering" >
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -2,6 +2,304 @@
<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">
<RelativeLayout
android:id="@+id/rl_mine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
android:paddingTop="@dimen/top_pind_sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/tv_mine"
android:layout_width="wrap_content"
style="@style/text_style_toolbar_title"
android:textColor="#000"
android:text="我的" />
</RelativeLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="140dp"
android:background="@mipmap/bg"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rl_mine">
<ImageView
android:id="@+id/image_heard"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_margin="20dp"
android:background="@drawable/icon_task_specification"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.3" />
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="NO7378"
android:textColor="#fff"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/image_heard"
app:layout_constraintStart_toEndOf="@+id/image_heard"
app:layout_constraintTop_toTopOf="@+id/image_heard" />
<ImageView
android:id="@+id/image_share"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:layout_marginTop="10dp"
android:background="@drawable/icon_event_prefecture"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/image_sign"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="15dp"
android:background="@drawable/icon_capacity_evaluation"
app:layout_constraintBottom_toBottomOf="@+id/image_heard"
app:layout_constraintEnd_toEndOf="@+id/image_share"
app:layout_constraintTop_toBottomOf="@+id/image_share" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginRight="40dp"
android:layout_marginLeft="40dp"
app:layout_constraintBottom_toTopOf="@+id/linearLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="总资产(元)"
android:textColor="#333"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_money"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0.0"
android:textColor="#000"
android:textSize="40sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/tv_title"
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
<Button
android:id="@+id/btn_withdraw"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:text="去提现"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="60dp"
android:orientation="vertical"
android:layout_marginRight="40dp"
android:layout_marginLeft="40dp"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
<RelativeLayout
android:id="@+id/rl_grade"
android:layout_marginTop="20dp"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我的等级"
android:textSize="18sp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LV.1"
android:gravity="center"
android:textSize="18sp"
android:layout_alignParentRight="true"
android:drawableRight="@drawable/ic_baseline_arrow_forward"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<RelativeLayout
android:id="@+id/rl_privilege"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我的特权"
android:textSize="18sp"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_baseline_arrow_forward"
android:gravity="center"
android:textSize="18sp"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<RelativeLayout
android:id="@+id/rl_map"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="地图下载"
android:textSize="18sp"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<RelativeLayout
android:id="@+id/rl_issue"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="常见问题"
android:textSize="18sp"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<RelativeLayout
android:id="@+id/rl_contact"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="联系我们"
android:textSize="18sp"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<RelativeLayout
android:id="@+id/rl_set"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="设置"
android:textSize="18sp"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<RelativeLayout
android:id="@+id/rl_about"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="关于"
android:textSize="18sp"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0"
/>
<Button
android:id="@+id/btn_quit"
android:layout_width="match_parent"
android:layout_margin="10dp"
android:text="退出登录"
android:layout_height="0dp"
android:layout_weight="1"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,277 @@
<?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_user"
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_user"
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_user"
android:layout_width="wrap_content"
style="@style/text_style_toolbar_title"
android:layout_toRightOf="@id/iv_find_task"
android:text="用户资料" />
</LinearLayout>
<TextView
android:id="@+id/tv_title"
style="@style/text_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账号信息"
android:layout_margin="20dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toTopOf="@id/linearLayout"
app:layout_constraintTop_toBottomOf="@+id/rl_user" />
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="#fff"
android:orientation="vertical"
android:layout_marginTop="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_title">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="实名认证"
android:layout_marginLeft="20dp"
android:layout_centerVertical="true"
android:textColor="#333"
android:textSize="15sp" />
<Button
android:id="@+id/btn_attestation"
android:layout_width="80dp"
android:layout_height="35dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:text="去认证"
android:textColor="#fff"
android:background="#2196F3"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="收款信息"
android:layout_marginLeft="20dp"
android:layout_centerVertical="true"
android:textColor="#333"
android:textSize="15sp"/>
<Button
android:id="@+id/btn_gathering"
android:layout_width="80dp"
android:layout_height="35dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:text="去绑定"
android:textColor="#fff"
android:background="#2196F3"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_region"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="所在地区*"
android:layout_centerVertical="true"
android:layout_marginLeft="20dp"
android:textColor="#333"
android:textSize="15sp"/>
<EditText
android:layout_toRightOf="@id/tv_region"
android:layout_width="wrap_content"
android:background="#fff"
android:layout_centerVertical="true"
android:hint="请选择所在区域"
android:textSize="15sp"
android:layout_height="wrap_content"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_number"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="手机号码*"
android:layout_centerVertical="true"
android:layout_marginLeft="20dp"
android:textColor="#333"
android:textSize="15sp"/>
<EditText
android:layout_toRightOf="@id/tv_number"
android:layout_width="wrap_content"
android:background="#fff"
android:layout_centerVertical="true"
android:hint="请输入手机号码"
android:textSize="15sp"
android:layout_height="wrap_content"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_qq"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="QQ号码*"
android:layout_centerVertical="true"
android:layout_marginLeft="20dp"
android:textColor="#333"
android:textSize="15sp"/>
<EditText
android:layout_toRightOf="@id/tv_qq"
android:layout_width="wrap_content"
android:background="#fff"
android:layout_centerVertical="true"
android:hint="请输入QQ号码"
android:textSize="15sp"
android:layout_height="wrap_content"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_mailbox"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="电子邮箱*"
android:layout_centerVertical="true"
android:layout_marginLeft="20dp"
android:textColor="#333"
android:textSize="15sp" />
<EditText
android:layout_toRightOf="@id/tv_mailbox"
android:layout_width="wrap_content"
android:background="#fff"
android:layout_centerVertical="true"
android:hint="请输入邮箱地址"
android:textSize="15sp"
android:layout_height="wrap_content"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="微信"
android:layout_marginLeft="20dp"
android:layout_centerVertical="true"
android:textColor="#333"
android:textSize="15sp"/>
<Button
android:layout_width="80dp"
android:layout_height="35dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:text="去绑定"
android:textColor="#fff"
android:background="#2196F3"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#F1F0F0" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,6 @@
<?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">
</androidx.constraintlayout.widget.ConstraintLayout>