日常工作页面修改
This commit is contained in:
parent
e54f61b0ae
commit
1714c9fe9e
@ -826,7 +826,7 @@ public final class TimeUtils {
|
|||||||
public static String timeTranDate(String date) {
|
public static String timeTranDate(String date) {
|
||||||
if (TextUtils.isEmpty(date)) return "";
|
if (TextUtils.isEmpty(date)) return "";
|
||||||
String substring = date.substring(0, 10);
|
String substring = date.substring(0, 10);
|
||||||
return substring;
|
return substring.replaceAll("-", ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,8 @@ package com.tenlionsoft.oamodule.activity.routine;
|
|||||||
import android.app.ProgressDialog;
|
import android.app.ProgressDialog;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
|
import android.text.Editable;
|
||||||
|
import android.text.InputFilter;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
@ -25,13 +27,14 @@ import com.tenlionsoft.baselib.core.retrofit_net.BaseUrlApi;
|
|||||||
import com.tenlionsoft.baselib.core.retrofit_net.RetrofitManager;
|
import com.tenlionsoft.baselib.core.retrofit_net.RetrofitManager;
|
||||||
import com.tenlionsoft.baselib.core.retrofit_net.api.BaseApiService;
|
import com.tenlionsoft.baselib.core.retrofit_net.api.BaseApiService;
|
||||||
import com.tenlionsoft.baselib.core.retrofit_net.conver.RxTransformer;
|
import com.tenlionsoft.baselib.core.retrofit_net.conver.RxTransformer;
|
||||||
|
import com.tenlionsoft.baselib.core.widget.AstrictLengthFilter;
|
||||||
import com.tenlionsoft.baselib.core.widget.base.AddFileAdapter;
|
import com.tenlionsoft.baselib.core.widget.base.AddFileAdapter;
|
||||||
import com.tenlionsoft.baselib.core.widget.base.BaseActivity;
|
import com.tenlionsoft.baselib.core.widget.base.BaseActivity;
|
||||||
|
import com.tenlionsoft.baselib.interfaces.TextChange;
|
||||||
import com.tenlionsoft.baselib.utils.ExceptionHandler;
|
import com.tenlionsoft.baselib.utils.ExceptionHandler;
|
||||||
import com.tenlionsoft.baselib.utils.LogUtils;
|
import com.tenlionsoft.baselib.utils.LogUtils;
|
||||||
import com.tenlionsoft.baselib.utils.TimeUtils;
|
import com.tenlionsoft.baselib.utils.TimeUtils;
|
||||||
import com.tenlionsoft.baselib.utils.UIUtil;
|
import com.tenlionsoft.baselib.utils.UIUtil;
|
||||||
import com.tenlionsoft.baselib.utils.UserLgUtils;
|
|
||||||
import com.tenlionsoft.oamodule.R;
|
import com.tenlionsoft.oamodule.R;
|
||||||
import com.tenlionsoft.oamodule.R2;
|
import com.tenlionsoft.oamodule.R2;
|
||||||
import com.tenlionsoft.oamodule.beans.ChoosePersonListBean;
|
import com.tenlionsoft.oamodule.beans.ChoosePersonListBean;
|
||||||
@ -46,7 +49,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.widget.SwitchCompat;
|
import androidx.appcompat.widget.SwitchCompat;
|
||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
@ -101,6 +104,7 @@ public class ApplyRoutineWorkActivity extends BaseActivity {
|
|||||||
private String[] fileFilter = new String[]{".doc", ".docx", ".xls", ".xlsx", ".pptx", ".ppt", ".txt", ".pdf"};
|
private String[] fileFilter = new String[]{".doc", ".docx", ".xls", ".xlsx", ".pptx", ".ppt", ".txt", ".pdf"};
|
||||||
private ChoosePersonListBean mSelUndertake;
|
private ChoosePersonListBean mSelUndertake;
|
||||||
private String mIds;
|
private String mIds;
|
||||||
|
private final int mMaxInput = 140;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int setLayoutId() {
|
protected int setLayoutId() {
|
||||||
@ -111,6 +115,7 @@ public class ApplyRoutineWorkActivity extends BaseActivity {
|
|||||||
public void initData() {
|
public void initData() {
|
||||||
ButterKnife.bind(this);
|
ButterKnife.bind(this);
|
||||||
mTvBaseTitle.setText("发起工作");
|
mTvBaseTitle.setText("发起工作");
|
||||||
|
mRlTitleBar.setBackgroundColor(getResources().getColor(R.color.gray_f8));
|
||||||
refreshView(STATE_LOAD_SUCCESS);
|
refreshView(STATE_LOAD_SUCCESS);
|
||||||
initViews();
|
initViews();
|
||||||
}
|
}
|
||||||
@ -148,10 +153,29 @@ public class ApplyRoutineWorkActivity extends BaseActivity {
|
|||||||
mAddFileAdapter.notifyDataSetChanged();
|
mAddFileAdapter.notifyDataSetChanged();
|
||||||
++mFileMax;
|
++mFileMax;
|
||||||
});
|
});
|
||||||
mRlvFiles.setLayoutManager(new GridLayoutManager(mActivity, 4));
|
mRlvFiles.setLayoutManager(new LinearLayoutManager(mActivity));
|
||||||
mRlvFiles.setAdapter(mAddFileAdapter);
|
mRlvFiles.setAdapter(mAddFileAdapter);
|
||||||
|
|
||||||
mBtnConfirm.setOnClickListener(v -> doConfirm());
|
mBtnConfirm.setOnClickListener(v -> doConfirm());
|
||||||
|
mEtRequest.addTextChangedListener(new TextChange() {
|
||||||
|
@Override
|
||||||
|
public void afterTextChanged(Editable s) {
|
||||||
|
int length = s.toString().length();
|
||||||
|
mTvRequestNum.setText(length + "/" + mMaxInput);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
AstrictLengthFilter filter = new AstrictLengthFilter(mMaxInput);
|
||||||
|
mEtRequest.setFilters(new InputFilter[]{filter});
|
||||||
|
|
||||||
|
mEtRemark.addTextChangedListener(new TextChange() {
|
||||||
|
@Override
|
||||||
|
public void afterTextChanged(Editable s) {
|
||||||
|
int length = s.toString().length();
|
||||||
|
mTvRemarkNum.setText(length + "/" + mMaxInput);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
AstrictLengthFilter filter2 = new AstrictLengthFilter(mMaxInput);
|
||||||
|
mEtRemark.setFilters(new InputFilter[]{filter2});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -182,7 +206,7 @@ public class ApplyRoutineWorkActivity extends BaseActivity {
|
|||||||
case 2:
|
case 2:
|
||||||
//判断时间大小
|
//判断时间大小
|
||||||
String start = mTvStartTime.getText().toString().trim();
|
String start = mTvStartTime.getText().toString().trim();
|
||||||
if(!TextUtils.isEmpty(start)){
|
if (!TextUtils.isEmpty(start)) {
|
||||||
int span = TimeUtils.compareDate(date, TimeUtils.string2Date(start));
|
int span = TimeUtils.compareDate(date, TimeUtils.string2Date(start));
|
||||||
long timeSpan = TimeUtils.getTimeSpan(TimeUtils.dateToString2(date), start, TimeConstants.DAY);
|
long timeSpan = TimeUtils.getTimeSpan(TimeUtils.dateToString2(date), start, TimeConstants.DAY);
|
||||||
if (span >= 0) {
|
if (span >= 0) {
|
||||||
@ -191,7 +215,7 @@ public class ApplyRoutineWorkActivity extends BaseActivity {
|
|||||||
} else {
|
} else {
|
||||||
ToastUtils.show("结束时间须大于开始时间");
|
ToastUtils.show("结束时间须大于开始时间");
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
ToastUtils.show("请选择开始时间");
|
ToastUtils.show("请选择开始时间");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -44,6 +44,7 @@ import java.util.List;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.widget.SwitchCompat;
|
import androidx.appcompat.widget.SwitchCompat;
|
||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
@ -111,6 +112,7 @@ public class RoutineRestoreActivity extends BaseActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void initData() {
|
public void initData() {
|
||||||
mBind = ButterKnife.bind(this);
|
mBind = ButterKnife.bind(this);
|
||||||
|
mRlTitleBar.setBackgroundColor(getResources().getColor(R.color.gray_f8));
|
||||||
mTvBaseTitle.setText("日常工作");
|
mTvBaseTitle.setText("日常工作");
|
||||||
mId = getIntent().getStringExtra("id");
|
mId = getIntent().getStringExtra("id");
|
||||||
mUserId = getIntent().getStringExtra("userId");
|
mUserId = getIntent().getStringExtra("userId");
|
||||||
@ -142,10 +144,11 @@ public class RoutineRestoreActivity extends BaseActivity {
|
|||||||
mAddFileAdapter.notifyDataSetChanged();
|
mAddFileAdapter.notifyDataSetChanged();
|
||||||
++mFileMax;
|
++mFileMax;
|
||||||
});
|
});
|
||||||
mRlvRestoreFiles.setLayoutManager(new GridLayoutManager(mActivity, 4));
|
mRlvRestoreFiles.setLayoutManager(new LinearLayoutManager(mActivity));
|
||||||
mRlvRestoreFiles.setAdapter(mAddFileAdapter);
|
mRlvRestoreFiles.setAdapter(mAddFileAdapter);
|
||||||
mBtnConfirm.setOnClickListener(v -> doConfirm());
|
mBtnConfirm.setOnClickListener(v -> doConfirm());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void hasManageFileManage() {
|
protected void hasManageFileManage() {
|
||||||
if (mFileMax == 0) {
|
if (mFileMax == 0) {
|
||||||
@ -160,6 +163,7 @@ public class RoutineRestoreActivity extends BaseActivity {
|
|||||||
.start();
|
.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkParams() {
|
private boolean checkParams() {
|
||||||
String restore = mEtRestore.getText().toString().trim();
|
String restore = mEtRestore.getText().toString().trim();
|
||||||
if (TextUtils.isEmpty(restore)) {
|
if (TextUtils.isEmpty(restore)) {
|
||||||
@ -266,7 +270,7 @@ public class RoutineRestoreActivity extends BaseActivity {
|
|||||||
if (observable == null) return;
|
if (observable == null) return;
|
||||||
requests.add(observable);
|
requests.add(observable);
|
||||||
}
|
}
|
||||||
Observable[] observables1 = requests.toArray(new Observable[requests.size()]);
|
Observable<BaseSuccessBean>[] observables1 = requests.toArray(new Observable[requests.size()]);
|
||||||
|
|
||||||
Observable.mergeArrayDelayError(observables1)
|
Observable.mergeArrayDelayError(observables1)
|
||||||
.compose(RxTransformer.getTransformer())
|
.compose(RxTransformer.getTransformer())
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.tenlionsoft.oamodule.activity.routine;
|
package com.tenlionsoft.oamodule.activity.routine;
|
||||||
|
|
||||||
|
import android.app.ProgressDialog;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -7,15 +8,20 @@ import android.widget.LinearLayout;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
|
import com.hjq.toast.ToastUtils;
|
||||||
import com.tenlionsoft.baselib.constant.PathConfig;
|
import com.tenlionsoft.baselib.constant.PathConfig;
|
||||||
import com.tenlionsoft.baselib.core.beans.AddFileBean;
|
import com.tenlionsoft.baselib.core.beans.AddFileBean;
|
||||||
import com.tenlionsoft.baselib.core.retrofit_net.BaseUrlApi;
|
import com.tenlionsoft.baselib.core.retrofit_net.BaseUrlApi;
|
||||||
import com.tenlionsoft.baselib.core.retrofit_net.RetrofitManager;
|
import com.tenlionsoft.baselib.core.retrofit_net.RetrofitManager;
|
||||||
|
import com.tenlionsoft.baselib.core.retrofit_net.api.BaseApiService;
|
||||||
|
import com.tenlionsoft.baselib.core.retrofit_net.bean.FileInfoBean;
|
||||||
import com.tenlionsoft.baselib.core.retrofit_net.conver.RxTransformer;
|
import com.tenlionsoft.baselib.core.retrofit_net.conver.RxTransformer;
|
||||||
|
import com.tenlionsoft.baselib.core.widget.base.AddFileAdapter;
|
||||||
import com.tenlionsoft.baselib.core.widget.base.BaseActivity;
|
import com.tenlionsoft.baselib.core.widget.base.BaseActivity;
|
||||||
import com.tenlionsoft.baselib.core.widget.base.ShowFileAdapter;
|
|
||||||
import com.tenlionsoft.baselib.utils.ExceptionHandler;
|
import com.tenlionsoft.baselib.utils.ExceptionHandler;
|
||||||
import com.tenlionsoft.baselib.utils.UserLgUtils;
|
import com.tenlionsoft.baselib.utils.FileUtils;
|
||||||
|
import com.tenlionsoft.baselib.utils.UIUtil;
|
||||||
import com.tenlionsoft.oamodule.R;
|
import com.tenlionsoft.oamodule.R;
|
||||||
import com.tenlionsoft.oamodule.R2;
|
import com.tenlionsoft.oamodule.R2;
|
||||||
import com.tenlionsoft.oamodule.beans.RoutineAcceptListBean;
|
import com.tenlionsoft.oamodule.beans.RoutineAcceptListBean;
|
||||||
@ -26,7 +32,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import androidx.appcompat.widget.SwitchCompat;
|
import androidx.appcompat.widget.SwitchCompat;
|
||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
@ -34,6 +40,8 @@ import io.reactivex.rxjava3.annotations.NonNull;
|
|||||||
import io.reactivex.rxjava3.core.Observer;
|
import io.reactivex.rxjava3.core.Observer;
|
||||||
import io.reactivex.rxjava3.disposables.Disposable;
|
import io.reactivex.rxjava3.disposables.Disposable;
|
||||||
|
|
||||||
|
import static com.tenlionsoft.baselib.core.widget.PhotoActivity.TAG_IMGURL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作者: Adam
|
* 作者: Adam
|
||||||
* 日期: 2022年04月18日11:32:54
|
* 日期: 2022年04月18日11:32:54
|
||||||
@ -88,6 +96,7 @@ public class RoutineWorkDetailActivity extends BaseActivity {
|
|||||||
public void initData() {
|
public void initData() {
|
||||||
ButterKnife.bind(this);
|
ButterKnife.bind(this);
|
||||||
mTvBaseTitle.setText("工作详情");
|
mTvBaseTitle.setText("工作详情");
|
||||||
|
mRlTitleBar.setBackgroundColor(getResources().getColor(R.color.gray_f8));
|
||||||
String id = getIntent().getStringExtra("id");
|
String id = getIntent().getStringExtra("id");
|
||||||
String userId = getIntent().getStringExtra("userId");
|
String userId = getIntent().getStringExtra("userId");
|
||||||
if (TextUtils.isEmpty(userId)) {
|
if (TextUtils.isEmpty(userId)) {
|
||||||
@ -143,20 +152,22 @@ public class RoutineWorkDetailActivity extends BaseActivity {
|
|||||||
mTvRequest.setText(Html.fromHtml(b.getRoutineWorkDTO().getWorkResultReq()));
|
mTvRequest.setText(Html.fromHtml(b.getRoutineWorkDTO().getWorkResultReq()));
|
||||||
mTvRemark.setText(Html.fromHtml(b.getRoutineWorkDTO().getWorkRemarks()));
|
mTvRemark.setText(Html.fromHtml(b.getRoutineWorkDTO().getWorkRemarks()));
|
||||||
if (!TextUtils.isEmpty(b.getRoutineWorkDTO().getWorkFiles())) {
|
if (!TextUtils.isEmpty(b.getRoutineWorkDTO().getWorkFiles())) {
|
||||||
List<AddFileBean> files = new ArrayList<>();
|
// List<AddFileBean> files = new ArrayList<>();
|
||||||
mTvFileHint.setVisibility(View.GONE);
|
// mTvFileHint.setVisibility(View.GONE);
|
||||||
mRlvFiles.setVisibility(View.VISIBLE);
|
// mRlvFiles.setVisibility(View.VISIBLE);
|
||||||
String[] split = b.getRoutineWorkDTO().getWorkFiles().split(",");
|
// String[] split = b.getRoutineWorkDTO().getWorkFiles().split(",");
|
||||||
for (int i = 0; i < split.length; i++) {
|
// for (int i = 0; i < split.length; i++) {
|
||||||
AddFileBean bean = new AddFileBean();
|
// AddFileBean bean = new AddFileBean();
|
||||||
bean.setId(split[i]);
|
// bean.setId(split[i]);
|
||||||
bean.setPath(BaseUrlApi.BASE_IMG_URL + split[i]);
|
// bean.setPath(BaseUrlApi.BASE_IMG_URL + split[i]);
|
||||||
bean.setFileType(1);
|
// bean.setFileType(1);
|
||||||
files.add(bean);
|
// files.add(bean);
|
||||||
}
|
// }
|
||||||
ShowFileAdapter adapter = new ShowFileAdapter(mActivity, files);
|
// AddFileAdapter adapter = new AddFileAdapter(mActivity, files);
|
||||||
mRlvFiles.setLayoutManager(new GridLayoutManager(mActivity, 4));
|
// mRlvFiles.setLayoutManager(new LinearLayoutManager(mActivity));
|
||||||
mRlvFiles.setAdapter(adapter);
|
// mRlvFiles.setAdapter(adapter);
|
||||||
|
|
||||||
|
doGetFileInfo(b.getRoutineWorkDTO().getWorkFiles(), mRlvRestoreFiles);
|
||||||
} else {
|
} else {
|
||||||
mTvFileHint.setVisibility(View.VISIBLE);
|
mTvFileHint.setVisibility(View.VISIBLE);
|
||||||
mRlvFiles.setVisibility(View.GONE);
|
mRlvFiles.setVisibility(View.GONE);
|
||||||
@ -167,18 +178,20 @@ public class RoutineWorkDetailActivity extends BaseActivity {
|
|||||||
if (!TextUtils.isEmpty(b.getFiles())) {
|
if (!TextUtils.isEmpty(b.getFiles())) {
|
||||||
mRlvRestoreFiles.setVisibility(View.VISIBLE);
|
mRlvRestoreFiles.setVisibility(View.VISIBLE);
|
||||||
mTvRestoreFileHint.setVisibility(View.GONE);
|
mTvRestoreFileHint.setVisibility(View.GONE);
|
||||||
List<AddFileBean> files = new ArrayList<>();
|
// List<AddFileBean> files = new ArrayList<>();
|
||||||
String[] split = b.getRoutineWorkDTO().getWorkFiles().split(",");
|
// String[] split = b.getRoutineWorkDTO().getWorkFiles().split(",");
|
||||||
for (int i = 0; i < split.length; i++) {
|
// for (int i = 0; i < split.length; i++) {
|
||||||
AddFileBean bean = new AddFileBean();
|
// AddFileBean bean = new AddFileBean();
|
||||||
bean.setId(split[i]);
|
// bean.setId(split[i]);
|
||||||
bean.setPath(BaseUrlApi.BASE_IMG_URL + split[i]);
|
// bean.setPath(BaseUrlApi.BASE_IMG_URL + split[i]);
|
||||||
bean.setFileType(1);
|
// bean.setFileType(1);
|
||||||
files.add(bean);
|
// files.add(bean);
|
||||||
}
|
// }
|
||||||
ShowFileAdapter adapter = new ShowFileAdapter(mActivity, files);
|
// AddFileAdapter adapter = new AddFileAdapter(mActivity, files);
|
||||||
mRlvRestoreFiles.setLayoutManager(new GridLayoutManager(mActivity, 4));
|
// mRlvRestoreFiles.setLayoutManager(new LinearLayoutManager(mActivity));
|
||||||
mRlvRestoreFiles.setAdapter(adapter);
|
// mRlvRestoreFiles.setAdapter(adapter);
|
||||||
|
|
||||||
|
doGetFileInfo(b.getFiles(), mRlvRestoreFiles);
|
||||||
} else {
|
} else {
|
||||||
mRlvRestoreFiles.setVisibility(View.GONE);
|
mRlvRestoreFiles.setVisibility(View.GONE);
|
||||||
mTvRestoreFileHint.setVisibility(View.VISIBLE);
|
mTvRestoreFileHint.setVisibility(View.VISIBLE);
|
||||||
@ -232,24 +245,105 @@ public class RoutineWorkDetailActivity extends BaseActivity {
|
|||||||
if (!TextUtils.isEmpty(b.getWorkFiles())) {
|
if (!TextUtils.isEmpty(b.getWorkFiles())) {
|
||||||
mTvFileHint.setVisibility(View.GONE);
|
mTvFileHint.setVisibility(View.GONE);
|
||||||
mRlvFiles.setVisibility(View.VISIBLE);
|
mRlvFiles.setVisibility(View.VISIBLE);
|
||||||
List<AddFileBean> files = new ArrayList<>();
|
doGetFileInfo(b.getWorkFiles(), mRlvFiles);
|
||||||
String[] split = b.getWorkFiles().split(",");
|
// List<AddFileBean> files = new ArrayList<>();
|
||||||
for (int i = 0; i < split.length; i++) {
|
// String[] split = b.getWorkFiles().split(",");
|
||||||
AddFileBean bean = new AddFileBean();
|
// for (int i = 0; i < split.length; i++) {
|
||||||
bean.setId(split[i]);
|
// AddFileBean bean = new AddFileBean();
|
||||||
bean.setPath(BaseUrlApi.BASE_IMG_URL + split[i]);
|
// bean.setId(split[i]);
|
||||||
bean.setFileType(1);
|
// bean.setPath(BaseUrlApi.BASE_IMG_URL + split[i]);
|
||||||
files.add(bean);
|
// bean.setFileType(1);
|
||||||
}
|
// files.add(bean);
|
||||||
ShowFileAdapter adapter = new ShowFileAdapter(mActivity, files);
|
// }
|
||||||
mRlvFiles.setLayoutManager(new GridLayoutManager(mActivity, 4));
|
// AddFileAdapter adapter = new AddFileAdapter(mActivity, files);
|
||||||
mRlvFiles.setAdapter(adapter);
|
// mRlvFiles.setLayoutManager(new LinearLayoutManager(mActivity));
|
||||||
|
// mRlvFiles.setAdapter(adapter);
|
||||||
} else {
|
} else {
|
||||||
mTvFileHint.setVisibility(View.VISIBLE);
|
mTvFileHint.setVisibility(View.VISIBLE);
|
||||||
mRlvFiles.setVisibility(View.GONE);
|
mRlvFiles.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void doGetFileInfo(String fileId, RecyclerView rlvContent) {
|
||||||
|
ProgressDialog dialog = UIUtil.initDialog(mActivity, "获取中...");
|
||||||
|
dialog.show();
|
||||||
|
RetrofitManager.getInstance()
|
||||||
|
.create(BaseApiService.class)
|
||||||
|
.getFileInfoList(fileId)
|
||||||
|
.compose(RxTransformer.getTransformer())
|
||||||
|
.subscribe(new Observer<List<FileInfoBean>>() {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSubscribe(@NonNull Disposable d) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onNext(@NonNull List<FileInfoBean> fileInfoBeans) {
|
||||||
|
if (dialog.isShowing()) dialog.dismiss();
|
||||||
|
if (fileInfoBeans.size() > 0) {
|
||||||
|
List<AddFileBean> fileBeans = new ArrayList<>();
|
||||||
|
AddFileAdapter addFileAdapter = new AddFileAdapter(mActivity, fileBeans);
|
||||||
|
rlvContent.setLayoutManager(new LinearLayoutManager(mActivity));
|
||||||
|
rlvContent.setAdapter(addFileAdapter);
|
||||||
|
for (int i = 0; i < fileInfoBeans.size(); i++) {
|
||||||
|
FileInfoBean infoBean = fileInfoBeans.get(i);
|
||||||
|
AddFileBean bean = new AddFileBean();
|
||||||
|
bean.setId(infoBean.getFileId());
|
||||||
|
bean.setFileName(infoBean.getFileName());
|
||||||
|
bean.setFileType(FileUtils.getFileType(infoBean.getFileName()));
|
||||||
|
bean.setPath(BaseUrlApi.BASE_FILE_URL + infoBean.getFileId());
|
||||||
|
fileBeans.add(0, bean);
|
||||||
|
}
|
||||||
|
addFileAdapter.setData(fileBeans);
|
||||||
|
addFileAdapter.addOnItemClickListener(addFileBean -> {
|
||||||
|
if (addFileBean.getFileType() == 1) {
|
||||||
|
//文档
|
||||||
|
ARouter.getInstance()
|
||||||
|
.build(PathConfig.PATH_MODULE_BASELIB_ACTIVITY_PREVIEW_FILE)
|
||||||
|
.withString("fileName", addFileBean.getFileName())
|
||||||
|
.withString("fileId", addFileBean.getId())
|
||||||
|
.navigation();
|
||||||
|
} else if (2 == addFileBean.getFileType()) {
|
||||||
|
//图片预览
|
||||||
|
//遍历文件获取所有图片文件
|
||||||
|
ArrayList<String> imgUrls = new ArrayList<>();
|
||||||
|
for (int i = 0; i < addFileAdapter.getData().size(); i++) {
|
||||||
|
if (addFileAdapter.getData().get(i).getFileType() == 2) {
|
||||||
|
AddFileBean fileBean = addFileAdapter.getData().get(i);
|
||||||
|
String url = BaseUrlApi.BASE_IMG_URL + fileBean.getId();
|
||||||
|
imgUrls.add(url);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ARouter.getInstance()
|
||||||
|
.build(PathConfig.PATH_MODULE_BASELIB_SHOW_IMG)
|
||||||
|
.withStringArrayList(TAG_IMGURL, imgUrls)
|
||||||
|
.navigation();
|
||||||
|
} else if (3 == addFileBean.getFileType() || 4 == addFileBean.getFileType()) {
|
||||||
|
//TODO 视频或音频预览
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ToastUtils.show("未找到文档信息");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(@NonNull Throwable e) {
|
||||||
|
if (dialog.isShowing()) dialog.dismiss();
|
||||||
|
ExceptionHandler.handleException(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onComplete() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doSearchByTitle() {
|
protected void doSearchByTitle() {
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/gray_f0"
|
android:background="@color/gray_f2"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
<androidx.core.widget.NestedScrollView
|
||||||
@ -23,8 +23,8 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
|
||||||
android:background="@color/gray_f8"
|
android:background="@color/gray_f8"
|
||||||
|
android:orientation="vertical"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:paddingBottom="10dp">
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
@ -66,7 +66,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:drawableRight="@drawable/ic_arrow_right"
|
android:drawableRight="@drawable/ic_arrow_right_24"
|
||||||
|
android:drawablePadding="5dp"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请选择开始时间"
|
android:hint="请选择开始时间"
|
||||||
@ -90,7 +91,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:drawableRight="@drawable/ic_arrow_right"
|
android:drawableRight="@drawable/ic_arrow_right_24"
|
||||||
|
android:drawablePadding="5dp"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请选择结束时间"
|
android:hint="请选择结束时间"
|
||||||
@ -136,7 +138,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:drawableRight="@drawable/ic_arrow_right"
|
android:drawableRight="@drawable/ic_arrow_right_24"
|
||||||
|
android:drawablePadding="5dp"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请选择承办人"
|
android:hint="请选择承办人"
|
||||||
@ -160,7 +163,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:drawableRight="@drawable/ic_arrow_right"
|
android:drawableRight="@drawable/ic_arrow_right_24"
|
||||||
|
android:drawablePadding="5dp"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="请选择协办人"
|
android:hint="请选择协办人"
|
||||||
@ -209,9 +213,9 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
|
android:background="@color/gray_f8"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingTop="5dp"
|
android:paddingTop="5dp"
|
||||||
android:background="@color/gray_f8"
|
|
||||||
android:paddingBottom="10dp">
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
<LinearLayout style="@style/item_ver">
|
<LinearLayout style="@style/item_ver">
|
||||||
@ -228,7 +232,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:background="@drawable/shp_rectangle_gray"
|
android:background="@drawable/shp_rectangle_gray_df"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
@ -240,7 +244,7 @@
|
|||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:hint="请输入结果要求"
|
android:hint="请输入结果要求"
|
||||||
android:minLines="3"
|
android:minLines="3"
|
||||||
android:padding="5dp"
|
android:padding="10dp"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
@ -251,7 +255,7 @@
|
|||||||
android:layout_gravity="right"
|
android:layout_gravity="right"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginBottom="5dp"
|
||||||
tools:text="0/140" />
|
android:text="0/140" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -260,8 +264,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:orientation="vertical"
|
|
||||||
android:background="@color/gray_f8"
|
android:background="@color/gray_f8"
|
||||||
|
android:orientation="vertical"
|
||||||
android:paddingTop="5dp"
|
android:paddingTop="5dp"
|
||||||
android:paddingBottom="10dp">
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
@ -279,7 +283,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:background="@drawable/shp_rectangle_gray"
|
android:background="@drawable/shp_rectangle_gray_df"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
@ -291,7 +295,7 @@
|
|||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:hint="请输入备注"
|
android:hint="请输入备注"
|
||||||
android:minLines="3"
|
android:minLines="3"
|
||||||
android:padding="5dp"
|
android:padding="10dp"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
@ -302,7 +306,7 @@
|
|||||||
android:layout_gravity="right"
|
android:layout_gravity="right"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginBottom="5dp"
|
||||||
tools:text="0/140" />
|
android:text="0/140" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -311,8 +315,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:orientation="vertical"
|
|
||||||
android:background="@color/gray_f8"
|
android:background="@color/gray_f8"
|
||||||
|
android:orientation="vertical"
|
||||||
android:paddingTop="5dp"
|
android:paddingTop="5dp"
|
||||||
android:paddingBottom="10dp">
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
@ -330,7 +334,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:background="@drawable/shp_rectangle_gray"
|
android:background="@drawable/shp_rectangle_gray_df"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:text="我参加的"
|
android:text="我参加的"
|
||||||
|
android:textColor="@color/col_gray_black"
|
||||||
android:textSize="@dimen/text_14" />
|
android:textSize="@dimen/text_14" />
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
@ -81,6 +82,7 @@
|
|||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:text="我主持的"
|
android:text="我主持的"
|
||||||
|
android:textColor="@color/col_gray_black"
|
||||||
android:textSize="@dimen/text_14" />
|
android:textSize="@dimen/text_14" />
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
@ -96,6 +98,7 @@
|
|||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:text="我发起的"
|
android:text="我发起的"
|
||||||
|
android:textColor="@color/col_gray_black"
|
||||||
android:textSize="@dimen/text_14" />
|
android:textSize="@dimen/text_14" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|
||||||
|
@ -4,12 +4,13 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/gray_f0"
|
android:background="@color/gray_f2"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
<androidx.core.widget.NestedScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginBottom="50dp"
|
android:layout_marginBottom="50dp"
|
||||||
android:scrollbars="none">
|
android:scrollbars="none">
|
||||||
|
|
||||||
@ -53,6 +54,7 @@
|
|||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -121,6 +123,7 @@
|
|||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/rb_apply"
|
android:id="@+id/rb_apply"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="32dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/switch_custom_gray_white_left"
|
android:background="@drawable/switch_custom_gray_white_left"
|
||||||
android:button="@null"
|
android:button="@null"
|
||||||
@ -66,12 +66,12 @@
|
|||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:text="我的发起"
|
android:text="我的发起"
|
||||||
android:textStyle="bold" />
|
android:textColor="@color/col_gray_black" />
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/rb_accept"
|
android:id="@+id/rb_accept"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="32dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/switch_custom_gray_white_right"
|
android:background="@drawable/switch_custom_gray_white_right"
|
||||||
android:button="@null"
|
android:button="@null"
|
||||||
@ -81,7 +81,7 @@
|
|||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:text="接受工作"
|
android:text="接受工作"
|
||||||
android:textStyle="bold" />
|
android:textColor="@color/col_gray_black" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|
||||||
|
|
||||||
@ -110,6 +110,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="5dp"
|
android:layout_marginLeft="5dp"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginRight="5dp"
|
android:layout_marginRight="5dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
@ -118,7 +119,6 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="10dp"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/shp_rectangle_white_5"
|
android:background="@drawable/shp_rectangle_white_5"
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
@ -176,7 +176,7 @@
|
|||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginTop="5dp">
|
android:layout_marginTop="10dp">
|
||||||
|
|
||||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||||
android:id="@+id/srl_content"
|
android:id="@+id/srl_content"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/gray_f0"
|
android:background="@color/gray_f2"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
<androidx.core.widget.NestedScrollView
|
||||||
@ -21,17 +21,17 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@color/gray_f8"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:text="工作内容"
|
android:text="工作内容"
|
||||||
android:background="@color/gray_f8"
|
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
|
||||||
android:background="@color/gray_f8"
|
android:background="@color/gray_f8"
|
||||||
|
android:orientation="vertical"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:paddingBottom="10dp">
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
@ -53,6 +53,7 @@
|
|||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -76,7 +77,7 @@
|
|||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -99,7 +100,7 @@
|
|||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -121,6 +122,7 @@
|
|||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -143,7 +145,7 @@
|
|||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -166,7 +168,7 @@
|
|||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -243,8 +245,8 @@
|
|||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:minLines="3"
|
android:minLines="3"
|
||||||
android:padding="5dp"
|
android:padding="10dp"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -274,7 +276,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:background="@drawable/shp_rectangle_gray"
|
android:background="@drawable/shp_rectangle_gray_df"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -286,8 +288,8 @@
|
|||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:minLines="3"
|
android:minLines="3"
|
||||||
android:padding="5dp"
|
android:padding="10dp"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -317,7 +319,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:background="@drawable/shp_rectangle_gray"
|
android:background="@drawable/shp_rectangle_gray_df"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
@ -342,7 +344,7 @@
|
|||||||
android:id="@+id/ll_restore"
|
android:id="@+id/ll_restore"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="10dp"
|
||||||
android:background="@color/gray_f8"
|
android:background="@color/gray_f8"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@ -389,8 +391,8 @@
|
|||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:hint="未录入"
|
android:hint="未录入"
|
||||||
android:minLines="3"
|
android:minLines="3"
|
||||||
android:padding="5dp"
|
android:padding="10dp"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black_10"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -461,7 +463,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:background="@drawable/shp_rectangle_gray"
|
android:background="@drawable/shp_rectangle_gray_df"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
@ -3,32 +3,48 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:background="@color/white"
|
android:orientation="vertical"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:padding="5dp">
|
android:padding="5dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:orientation="horizontal">
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="@dimen/text_16"
|
android:textSize="@dimen/text_16"
|
||||||
tools:text="工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称" />
|
tools:text="工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称工作名称" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="5dp"
|
||||||
|
android:background="@drawable/shp_status_gray_rim"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingTop="3dp"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:paddingBottom="3dp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/text_12"
|
||||||
|
tools:text="未办结" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="3dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -63,21 +79,5 @@
|
|||||||
android:textSize="@dimen/text_14"
|
android:textSize="@dimen/text_14"
|
||||||
tools:text="名字" />
|
tools:text="名字" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_status"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="5dp"
|
|
||||||
android:background="@drawable/shp_status_gray_rim"
|
|
||||||
android:gravity="center"
|
|
||||||
android:paddingLeft="10dp"
|
|
||||||
android:paddingTop="3dp"
|
|
||||||
android:paddingRight="10dp"
|
|
||||||
android:paddingBottom="3dp"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:textSize="@dimen/text_12"
|
|
||||||
tools:text="未办结" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user