页面修改、以人找房、以房找人
This commit is contained in:
parent
848124963e
commit
0dbdfcadf7
@ -57,3 +57,12 @@
|
||||
1.人口房屋录入
|
||||
|
||||
```
|
||||
|
||||
## 2023-11-22
|
||||
```
|
||||
> 1.5.1
|
||||
|
||||
1.案件上报、详情页面修改
|
||||
2.以人找房 以房找人
|
||||
|
||||
```
|
||||
|
@ -154,6 +154,7 @@ public class IssueCheckActivity extends BaseActivity {
|
||||
private void showDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(mActivity, IssueDetailActivity.class);
|
||||
//待处理处理
|
||||
intent.putExtra("id",bean.getReportCaseId());
|
||||
intent.putExtra("mine", "1");
|
||||
intent.putExtra("bean", bean);
|
||||
if (bean.getCaseStatus().equals("4")) {
|
||||
|
@ -3,7 +3,6 @@ package com.sucstepsoft.realtimelocation.activitys.issue;
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Intent;
|
||||
import android.database.Cursor;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.AnimationDrawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
@ -21,7 +20,6 @@ import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RadioGroup;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.Switch;
|
||||
import android.widget.TextView;
|
||||
import android.widget.ZoomControls;
|
||||
@ -53,10 +51,11 @@ import com.sucstepsoft.realtimelocation.R;
|
||||
import com.sucstepsoft.realtimelocation.activitys.common.PhotoActivity;
|
||||
import com.sucstepsoft.realtimelocation.beans.BaseUserBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.IssueCheckBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.IssueDetailBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.IssueDisBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.IssueSubBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.SuccessBean;
|
||||
import com.sucstepsoft.realtimelocation.net.LocationApiService;
|
||||
import com.sucstepsoft.realtimelocation.utils.ExceptionHandler;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
@ -124,8 +123,6 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
TextView mTvHandleTime;
|
||||
@BindView(R.id.btn_reload)
|
||||
Button mBtnReload;
|
||||
@BindView(R.id.rl_accept)
|
||||
RelativeLayout mRlAccept;
|
||||
@BindView(R.id.ll_voice)
|
||||
LinearLayout mLlVoice;
|
||||
@BindView(R.id.tv_voice_anim)
|
||||
@ -138,8 +135,11 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
Button mBtnReturn;
|
||||
@BindView(R.id.tv_grade)
|
||||
TextView mTvGrade;
|
||||
@BindView(R.id.ll_grade)
|
||||
LinearLayout mLlGradeContent;
|
||||
private Unbinder mBind;
|
||||
private IssueSubBean.RowsBean mRowsBean;
|
||||
// private IssueSubBean.RowsBean mRowsBean;
|
||||
private IssueDetailBean mDetailBean;
|
||||
private List<AddPhotoBean> mPhotos = new ArrayList<>();
|
||||
private AddPhotoBean mCurrentBean;
|
||||
private String mPicPath;
|
||||
@ -149,6 +149,7 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
private String mCheck;
|
||||
private boolean isSelf = false;//是否是自处理
|
||||
private String mDegree = "4";//满意度
|
||||
private String mId;
|
||||
|
||||
@Override
|
||||
protected int setLayoutId() {
|
||||
@ -158,12 +159,17 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
@Override
|
||||
public void initData() {
|
||||
mBind = ButterKnife.bind(this);
|
||||
refreshView(STATE_LOAD_SUCCESS);
|
||||
refreshView(STATE_LOAD_LOADING);
|
||||
mTvBaseTitle.setText("上报详情");
|
||||
mTvPublish.setVisibility(View.VISIBLE);
|
||||
mTvPublish.setText("流程");
|
||||
mRowsBean = (IssueSubBean.RowsBean) getIntent().getSerializableExtra("bean");
|
||||
getDetail(mRowsBean);
|
||||
mId = getIntent().getStringExtra("id");
|
||||
if (TextUtils.isEmpty(mId)) {
|
||||
ToastUtils.showShort("数据有误");
|
||||
finish();
|
||||
} else {
|
||||
getDetail(mId);
|
||||
}
|
||||
String mine = getIntent().getStringExtra("mine");
|
||||
mCheck = getIntent().getStringExtra("check");
|
||||
if (TextUtils.isEmpty(mCheck)) {
|
||||
@ -181,10 +187,9 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
} else {
|
||||
mLlIssueDis.setVisibility(View.GONE);
|
||||
}
|
||||
setDetailDataToView();
|
||||
mTvPublish.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(IssueDetailActivity.this, IssueStepActivity.class);
|
||||
intent.putExtra("caseId", mRowsBean.getReportCaseId());
|
||||
intent.putExtra("caseId", mId);
|
||||
startActivity(intent);
|
||||
});
|
||||
View child = mMapView.getChildAt(1);
|
||||
@ -195,35 +200,36 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
setEditTextInhibitInputSpeChat(mEtIssueDisDesc);
|
||||
}
|
||||
|
||||
private void getDetail(IssueSubBean.RowsBean rowsBean) {
|
||||
if (rowsBean != null) {
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.getIssueDetail(rowsBean.getReportCaseId(), UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<Object>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
private void getDetail(String id) {
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.getIssueDetail(id, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<IssueDetailBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(Object o) {
|
||||
@Override
|
||||
public void onNext(IssueDetailBean o) {
|
||||
mDetailBean = o;
|
||||
refreshView(STATE_LOAD_SUCCESS);
|
||||
setDetailDataToView();
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
refreshView(STATE_LOAD_ERROR);
|
||||
ExceptionHandler.handleException(e);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -315,9 +321,9 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
*/
|
||||
private void doTrans() {
|
||||
Intent intent = new Intent(mActivity, IssueTransActivity.class);
|
||||
intent.putExtra("caseId", mRowsBean.getReportCaseId());
|
||||
intent.putExtra("communityName", mRowsBean.getCommunityName());
|
||||
intent.putExtra("areaName", mRowsBean.getAreaName());
|
||||
intent.putExtra("caseId", mDetailBean.getReportCaseId());
|
||||
intent.putExtra("communityName", mDetailBean.getCommunityName());
|
||||
intent.putExtra("areaName", mDetailBean.getAreaName());
|
||||
startActivityForResult(intent, 19);
|
||||
}
|
||||
|
||||
@ -329,7 +335,7 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
dialog.show();
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.returnIssueDis(mRowsBean.getReportCaseId(), UserLgUtils.getToken())
|
||||
.returnIssueDis(mDetailBean.getReportCaseId(), UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<SuccessBean>() {
|
||||
@ -386,7 +392,7 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), obj);
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.saveIssueInspect(mRowsBean.getReportCaseId(), body, UserLgUtils.getToken())
|
||||
.saveIssueInspect(mDetailBean.getReportCaseId(), body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<SuccessBean>() {
|
||||
@ -475,7 +481,7 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), obj);
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.saveIssueDis(mRowsBean.getReportCaseId(), body, UserLgUtils.getToken())
|
||||
.saveIssueDis(mDetailBean.getReportCaseId(), body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<SuccessBean>() {
|
||||
@ -593,7 +599,7 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), obj);
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.saveIssueInspect(mRowsBean.getReportCaseId(), body, UserLgUtils.getToken())
|
||||
.saveIssueInspect(mDetailBean.getReportCaseId(), body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<SuccessBean>() {
|
||||
@ -628,15 +634,15 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
private void setDetailDataToView() {
|
||||
if (mRowsBean != null) {
|
||||
if (mDetailBean != null) {
|
||||
//TODO 处理满意度
|
||||
LogUtils.e(mRowsBean.getGrade());
|
||||
if (TextUtils.isEmpty(mRowsBean.getGrade()) || "0".equals(mRowsBean.getGrade())) {
|
||||
mTvGrade.setVisibility(View.GONE);
|
||||
LogUtils.e(mDetailBean.getGrade());
|
||||
if (TextUtils.isEmpty(mDetailBean.getGrade()) || "0".equals(mDetailBean.getGrade())) {
|
||||
mLlGradeContent.setVisibility(View.GONE);
|
||||
} else {
|
||||
mTvGrade.setVisibility(View.VISIBLE);
|
||||
mLlGradeContent.setVisibility(View.VISIBLE);
|
||||
String grade = "满意";
|
||||
switch (mRowsBean.getGrade()) {
|
||||
switch (mDetailBean.getGrade()) {
|
||||
case "1":
|
||||
grade = "非常不满意";
|
||||
break;
|
||||
@ -653,10 +659,10 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
grade = "非常满意";
|
||||
break;
|
||||
}
|
||||
mTvGrade.setText("处理满意度:" + grade);
|
||||
mTvGrade.setText(grade);
|
||||
}
|
||||
//区域
|
||||
if (0 == mRowsBean.getIsSelf()) {
|
||||
if (0 == mDetailBean.getIsSelf()) {
|
||||
isSelf = false;
|
||||
//mRlAccept.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
@ -665,73 +671,55 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
//isAccept = true;
|
||||
//mRlAccept.setVisibility(View.GONE);
|
||||
}
|
||||
mTvUpOrg.setText(mRowsBean.getCommunityName());
|
||||
mTvUpOrg.setText(mDetailBean.getCommunityName());
|
||||
//状态
|
||||
//描述
|
||||
mTvIssueDesc.setText(mRowsBean.getCaseContent());
|
||||
mTvIssueDesc.setText(mDetailBean.getCaseContent());
|
||||
//上报时间
|
||||
mTvUpTime.setText("上报时间:" + mRowsBean.getReportDate());
|
||||
mTvUpTime.setText(mDetailBean.getReportDate());
|
||||
//类型
|
||||
mTvType.setText("上报类型:" + mRowsBean.getCaseTypeName());
|
||||
mTvType.setText("上报类型:" + mDetailBean.getCaseTypeName());
|
||||
//上报人
|
||||
mTvUpUser.setText("上报人员:" + mRowsBean.getCaseReporter());
|
||||
if (!TextUtils.isEmpty(mRowsBean.getCaseAudio())) {
|
||||
mTvUpUser.setText("上报人员:" + mDetailBean.getCaseReporter());
|
||||
if (!TextUtils.isEmpty(mDetailBean.getCaseAudio())) {
|
||||
mLlVoice.setVisibility(View.VISIBLE);
|
||||
mLlVoice.setOnClickListener(v -> playVoice(mRowsBean.getCaseAudio()));
|
||||
mLlVoice.setOnClickListener(v -> playVoice(mDetailBean.getCaseAudio()));
|
||||
} else {
|
||||
mLlVoice.setVisibility(View.GONE);
|
||||
}
|
||||
if (!TextUtils.isEmpty(mRowsBean.getCaseStatus())) {
|
||||
switch (mRowsBean.getCaseStatus()) {
|
||||
if (!TextUtils.isEmpty(mDetailBean.getCaseStatus())) {
|
||||
switch (mDetailBean.getCaseStatus()) {
|
||||
case "0"://待受理
|
||||
mTvState.setText("待受理");
|
||||
mTvState.setTextColor(Color.parseColor("#DE0E0E"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_red);
|
||||
break;
|
||||
case "1":
|
||||
mTvState.setText("待立案");
|
||||
mTvState.setTextColor(Color.parseColor("#DE0E0E"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_red);
|
||||
break;
|
||||
case "2":
|
||||
mTvState.setText("待下派");
|
||||
mTvState.setTextColor(Color.parseColor("#FFAE3B"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_yellow);
|
||||
break;
|
||||
case "3":
|
||||
mTvState.setText("待处理");
|
||||
mTvState.setTextColor(Color.parseColor("#DE0E0E"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_red);
|
||||
break;
|
||||
case "4":
|
||||
mTvState.setText("待检查");
|
||||
mTvState.setTextColor(Color.parseColor("#1189FF"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_blue);
|
||||
break;
|
||||
case "5":
|
||||
mTvState.setText("待结案");
|
||||
mTvState.setTextColor(Color.parseColor("#0EC843"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_green);
|
||||
break;
|
||||
case "6":
|
||||
mTvState.setText("已归档");
|
||||
mTvState.setTextColor(Color.parseColor("#D8D8D8"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_gray);
|
||||
break;
|
||||
default:
|
||||
mTvState.setText("异常");
|
||||
mTvState.setTextColor(Color.parseColor("#DE0E0E"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_red);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
mTvState.setText("异常");
|
||||
mTvState.setTextColor(Color.parseColor("#DE0E0E"));
|
||||
mTvState.setBackgroundResource(R.drawable.shp_status_red);
|
||||
}
|
||||
mTvIssueAddress.setText(mRowsBean.getCasePosition());
|
||||
String caseLongitude = mRowsBean.getCaseLongitude();
|
||||
String caseLatitude = mRowsBean.getCaseLatitude();
|
||||
mTvIssueAddress.setText(mDetailBean.getCasePosition());
|
||||
String caseLongitude = mDetailBean.getCaseLongitude();
|
||||
String caseLatitude = mDetailBean.getCaseLatitude();
|
||||
if (!TextUtils.isEmpty(caseLatitude) && !TextUtils.isEmpty(caseLongitude)) {
|
||||
Double l = Double.parseDouble(caseLongitude);
|
||||
Double a = Double.parseDouble(caseLatitude);
|
||||
@ -747,10 +735,10 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
map.addOverlay(markerOptions);
|
||||
mBtnReload.setOnClickListener(v -> map.animateMapStatus(MapStatusUpdateFactory.newMapStatus(ms)));
|
||||
}
|
||||
if (!TextUtils.isEmpty(mRowsBean.getCasePhotos())) {
|
||||
if (!TextUtils.isEmpty(mDetailBean.getCasePhotos())) {
|
||||
mRlvPhotos.setVisibility(View.VISIBLE);
|
||||
List<String> photos = new ArrayList<>();
|
||||
String[] split = mRowsBean.getCasePhotos().split(",");
|
||||
String[] split = mDetailBean.getCasePhotos().split(",");
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
if (!TextUtils.isEmpty(split[i])) {
|
||||
photos.add(BaseUrlApi.BASE_IMG_URL + split[i]);
|
||||
@ -775,15 +763,15 @@ public class IssueDetailActivity extends BaseActivity {
|
||||
}
|
||||
//TODO 填充处理数据
|
||||
if (!TextUtils.isEmpty(mCheck)) {
|
||||
mTvHandleTime.setText("处理时间:" + mRowsBean.getHandleDate());
|
||||
mTvHandleUser.setText("处理人:" + mRowsBean.getHandleUserName());
|
||||
mTvIssueDisDesc.setText(mRowsBean.getHandleOpinion());
|
||||
if (TextUtils.isEmpty(mRowsBean.getHandlePhotos())) {
|
||||
mTvHandleTime.setText(mDetailBean.getHandleCreateTime());
|
||||
mTvHandleUser.setText(mDetailBean.getHandleUserName());
|
||||
mTvIssueDisDesc.setText(mDetailBean.getHandleOpinion());
|
||||
if (TextUtils.isEmpty(mDetailBean.getHandlePhotos())) {
|
||||
mRlvDisPhoto.setVisibility(View.GONE);
|
||||
} else {
|
||||
mRlvDisPhoto.setVisibility(View.VISIBLE);
|
||||
List<String> photos = new ArrayList<>();
|
||||
String[] split = mRowsBean.getHandlePhotos().split(",");
|
||||
String[] split = mDetailBean.getHandlePhotos().split(",");
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
if (!TextUtils.isEmpty(split[i])) {
|
||||
photos.add(BaseUrlApi.BASE_IMG_URL + split[i]);
|
||||
|
@ -155,6 +155,7 @@ public class IssueInspectActivity extends BaseActivity {
|
||||
private void showDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(mActivity, IssueDetailActivity.class);
|
||||
//待处理处理
|
||||
intent.putExtra("id",bean.getReportCaseId());
|
||||
intent.putExtra("mine", "1");
|
||||
intent.putExtra("bean", bean);
|
||||
if (bean.getCaseStatus().equals("4")) {
|
||||
|
@ -94,6 +94,7 @@ public class IssueMineActivity extends BaseActivity {
|
||||
*/
|
||||
private void showDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(mActivity, IssueDetailActivity.class);
|
||||
intent.putExtra("id",bean.getReportCaseId());
|
||||
intent.putExtra("bean", bean);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
@ -89,7 +89,9 @@ public class IssueMineDisActivity extends BaseActivity {
|
||||
*/
|
||||
private void showDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(IssueMineDisActivity.this, IssueDetailActivity.class);
|
||||
|
||||
intent.putExtra("mine", "1");
|
||||
intent.putExtra("id", bean.getReportCaseId());
|
||||
intent.putExtra("bean", bean);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ import android.graphics.Color;
|
||||
import android.graphics.drawable.AnimationDrawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.provider.MediaStore;
|
||||
import android.support.v4.content.FileProvider;
|
||||
@ -96,6 +95,8 @@ public class IssueReportActivity extends BaseActivity {
|
||||
EditText mEtIssueDesc;
|
||||
@BindView(R.id.rlv_locale_photo)
|
||||
RecyclerView mRlvLocalePhoto;
|
||||
@BindView(R.id.ll_case_type)
|
||||
LinearLayout mLlCaseType;
|
||||
@BindView(R.id.btn_submit)
|
||||
Button mBtnSubmit;
|
||||
@BindView(R.id.arb_audio)
|
||||
@ -106,16 +107,16 @@ public class IssueReportActivity extends BaseActivity {
|
||||
LinearLayout mLlVoice;
|
||||
@BindView(R.id.tv_source_content)
|
||||
TextView mTvSourceContent;
|
||||
@BindView(R.id.tv_issue_detail_info)
|
||||
TextView mTvIssueDInfo;
|
||||
@BindView(R.id.tv_issue_base_info)
|
||||
TextView mTvIssueBaseInfo;
|
||||
// @BindView(R.id.tv_issue_detail_info)
|
||||
// TextView mTvIssueDInfo;
|
||||
// @BindView(R.id.tv_issue_base_info)
|
||||
// TextView mTvIssueBaseInfo;
|
||||
@BindView(R.id.sw_is_self)
|
||||
Switch mSwIsSelf;
|
||||
@BindView(R.id.tv_case_type)
|
||||
TextView mTvCaseType;
|
||||
@BindView(R.id.ll_case_type)
|
||||
LinearLayout mLlCaseType;
|
||||
// @BindView(R.id.ll_case_type)
|
||||
// LinearLayout mLlCaseType;
|
||||
private Unbinder mBind;
|
||||
private List<AddPhotoBean> mPhotos = new ArrayList<>();
|
||||
private AddPhotoBean mCurrentBean;
|
||||
@ -168,34 +169,34 @@ public class IssueReportActivity extends BaseActivity {
|
||||
|
||||
private void getUserArea() {
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.getUserDepartment(UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<UserDepartmentBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
.create(LocationApiService.class)
|
||||
.getUserDepartment(UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<UserDepartmentBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(List<UserDepartmentBean> userDepartmentBeans) {
|
||||
if (userDepartmentBeans != null && userDepartmentBeans.size() > 0) {
|
||||
mUserDepartmentBean = userDepartmentBeans.get(0);
|
||||
}
|
||||
getAreaList(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
getAreaList(0);
|
||||
}
|
||||
@Override
|
||||
public void onNext(List<UserDepartmentBean> userDepartmentBeans) {
|
||||
if (userDepartmentBeans != null && userDepartmentBeans.size() > 0) {
|
||||
mUserDepartmentBean = userDepartmentBeans.get(0);
|
||||
}
|
||||
getAreaList(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
getAreaList(0);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -265,11 +266,11 @@ public class IssueReportActivity extends BaseActivity {
|
||||
AnimationDrawable animationDrawable = (AnimationDrawable) mTvVoiceAnim.getBackground();
|
||||
animationDrawable.start();
|
||||
MediaManager.playSound(mVideoPath,
|
||||
mp -> {
|
||||
animationDrawable.selectDrawable(0);//显示动画第一帧
|
||||
animationDrawable.stop();
|
||||
MediaManager.destroy();
|
||||
});
|
||||
mp -> {
|
||||
animationDrawable.selectDrawable(0);//显示动画第一帧
|
||||
animationDrawable.stop();
|
||||
MediaManager.destroy();
|
||||
});
|
||||
} else {
|
||||
LogUtils.e("" + mVideoPath);
|
||||
}
|
||||
@ -322,10 +323,10 @@ public class IssueReportActivity extends BaseActivity {
|
||||
mTvCaseType.setText(bean.getDictName());
|
||||
mSelCaseType = bean.getDictId();
|
||||
}).setTitleText("请选择类型")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
mCaseTypePicker.setPicker(mCaseTypeList);
|
||||
}
|
||||
mCaseTypePicker.show();
|
||||
@ -370,11 +371,11 @@ public class IssueReportActivity extends BaseActivity {
|
||||
}
|
||||
mTvSourceContent.setText(mSources.get(options1));
|
||||
})
|
||||
.setTitleText("请选择来源")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
.setTitleText("请选择来源")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
mSourcePicker.setPicker(mSources);
|
||||
}
|
||||
mSourcePicker.show();
|
||||
@ -389,34 +390,34 @@ public class IssueReportActivity extends BaseActivity {
|
||||
ProgressDialog progressDialog = UIUtil.initDialog(IssueReportActivity.this, "案件上报中...");
|
||||
progressDialog.show();
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.doReportIssue(requestBody, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<SuccessBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
.create(LocationApiService.class)
|
||||
.doReportIssue(requestBody, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<SuccessBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(SuccessBean s) {
|
||||
progressDialog.dismiss();
|
||||
ToastUtils.showShort("上报成功");
|
||||
finish();
|
||||
}
|
||||
@Override
|
||||
public void onNext(SuccessBean s) {
|
||||
progressDialog.dismiss();
|
||||
ToastUtils.showShort("上报成功");
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
progressDialog.dismiss();
|
||||
ExceptionHandler.handleException(e);
|
||||
}
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
progressDialog.dismiss();
|
||||
ExceptionHandler.handleException(e);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
@ -445,11 +446,11 @@ public class IssueReportActivity extends BaseActivity {
|
||||
return null;
|
||||
}
|
||||
//案件分类
|
||||
if (!isSelf) {
|
||||
if (TextUtils.isEmpty(mSelCaseType)) {
|
||||
ToastUtils.showShort("请选择案件分类");
|
||||
}
|
||||
}
|
||||
// if (!isSelf) {
|
||||
// if (TextUtils.isEmpty(mSelCaseType)) {
|
||||
// ToastUtils.showShort("请选择案件分类");
|
||||
// }
|
||||
// }
|
||||
String desc = mEtIssueDesc.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(desc)) {
|
||||
ToastUtils.showShort("请输入案件描述");
|
||||
@ -548,43 +549,43 @@ public class IssueReportActivity extends BaseActivity {
|
||||
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
|
||||
MultipartBody.Part body = MultipartBody.Part.createFormData("audio", file.getName(), requestFile);
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.uploadVideo(body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<BaseUserBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
.create(LocationApiService.class)
|
||||
.uploadVideo(body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<BaseUserBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(BaseUserBean baseUserBean) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传成功");
|
||||
mVideoPath = filePath;
|
||||
mVideoId = baseUserBean.getData();
|
||||
mTvVoiceAnim.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
@Override
|
||||
public void onNext(BaseUserBean baseUserBean) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传成功");
|
||||
mVideoPath = filePath;
|
||||
mVideoId = baseUserBean.getData();
|
||||
mTvVoiceAnim.setVisibility(View.VISIBLE);
|
||||
}
|
||||
ToastUtils.showShort("上传失败,请稍后重试.");
|
||||
if (file.exists()) {
|
||||
file.delete();
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传失败,请稍后重试.");
|
||||
if (file.exists()) {
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
progressDialog.dismiss();
|
||||
ToastUtils.showShort("录音文件路径有误.");
|
||||
@ -608,10 +609,10 @@ public class IssueReportActivity extends BaseActivity {
|
||||
ToastUtils.showShort("请选择案件类型");
|
||||
}
|
||||
}).setTitleText("请选择类型")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
mTypePicker.setPicker(mTypeList, mTypeSubBenas);
|
||||
}
|
||||
mTypePicker.show();
|
||||
@ -625,41 +626,41 @@ public class IssueReportActivity extends BaseActivity {
|
||||
*/
|
||||
private void getCaseTypeList(int i) {
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.getDictListAll("46d108b2-4ef9-4f6f-b30c-0c700e3ee852", UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<TypeListBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
mCaseTypeDis = d;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(List<TypeListBean> areaListBeans) {
|
||||
if (null != areaListBeans && areaListBeans.size() > 0) {
|
||||
mTypeList = areaListBeans;
|
||||
if (mTypeList.get(0).getSubDicts() != null && mTypeList.get(0).getSubDicts().size() > 0) {
|
||||
mSelTypeBean = mTypeList.get(0);
|
||||
mSelTypeSubBean = mTypeList.get(0).getSubDicts().get(0);
|
||||
mTvTypeContent.setText(mSelTypeBean.getDictName() + " - " + mSelTypeSubBean.getDictName());
|
||||
}
|
||||
buildTypelistDatas(areaListBeans, i);
|
||||
} else {
|
||||
ToastUtils.showShort("暂无类别数据");
|
||||
.create(LocationApiService.class)
|
||||
.getDictListAll("46d108b2-4ef9-4f6f-b30c-0c700e3ee852", UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<TypeListBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
mCaseTypeDis = d;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
LogUtils.e(e);
|
||||
}
|
||||
@Override
|
||||
public void onNext(List<TypeListBean> areaListBeans) {
|
||||
if (null != areaListBeans && areaListBeans.size() > 0) {
|
||||
mTypeList = areaListBeans;
|
||||
if (mTypeList.get(0).getSubDicts() != null && mTypeList.get(0).getSubDicts().size() > 0) {
|
||||
mSelTypeBean = mTypeList.get(0);
|
||||
mSelTypeSubBean = mTypeList.get(0).getSubDicts().get(0);
|
||||
mTvTypeContent.setText(mSelTypeBean.getDictName() + " - " + mSelTypeSubBean.getDictName());
|
||||
}
|
||||
buildTypelistDatas(areaListBeans, i);
|
||||
} else {
|
||||
ToastUtils.showShort("暂无类别数据");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
LogUtils.e(e);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private List<List<TypeListBean.SubDictsBean>> mTypeSubBenas = new ArrayList<>();
|
||||
@ -691,67 +692,67 @@ public class IssueReportActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.getDictList("9d179f05-3ea0-48f7-853c-d3b7124b791c", UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<AreaListBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
mDictDis = d;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(List<AreaListBean> areaListBeans) {
|
||||
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
.create(LocationApiService.class)
|
||||
.getDictList("9d179f05-3ea0-48f7-853c-d3b7124b791c", UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<AreaListBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
mDictDis = d;
|
||||
}
|
||||
if (null != areaListBeans && areaListBeans.size() > 0) {
|
||||
mAreaList = areaListBeans;
|
||||
if (i == 0) {
|
||||
if (mUserDepartmentBean != null) {
|
||||
for (int j = 0; j < areaListBeans.size(); j++) {
|
||||
if (areaListBeans.get(j).getDictId().equals(mUserDepartmentBean.getAreaId())) {
|
||||
mTvAreaContent.setText(mAreaList.get(j).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(j);
|
||||
break;
|
||||
} else {
|
||||
mTvAreaContent.setText(mAreaList.get(0).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(0);
|
||||
|
||||
@Override
|
||||
public void onNext(List<AreaListBean> areaListBeans) {
|
||||
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
}
|
||||
if (null != areaListBeans && areaListBeans.size() > 0) {
|
||||
mAreaList = areaListBeans;
|
||||
if (i == 0) {
|
||||
if (mUserDepartmentBean != null) {
|
||||
for (int j = 0; j < areaListBeans.size(); j++) {
|
||||
if (areaListBeans.get(j).getDictId().equals(mUserDepartmentBean.getAreaId())) {
|
||||
mTvAreaContent.setText(mAreaList.get(j).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(j);
|
||||
break;
|
||||
} else {
|
||||
mTvAreaContent.setText(mAreaList.get(0).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(0);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mTvAreaContent.setText(mAreaList.get(0).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(0);
|
||||
}
|
||||
getCommunityList(mSelectAreaBean.getDictId(), 0);
|
||||
} else {
|
||||
mTvAreaContent.setText(mAreaList.get(0).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(0);
|
||||
getCommunityList(mAreaList.get(0).getDictId(), 0);
|
||||
}
|
||||
if (i == 1) {
|
||||
onShowAreaPicker();
|
||||
}
|
||||
getCommunityList(mSelectAreaBean.getDictId(), 0);
|
||||
} else {
|
||||
mTvAreaContent.setText(mAreaList.get(0).getDictName());
|
||||
mSelectAreaBean = mAreaList.get(0);
|
||||
getCommunityList(mAreaList.get(0).getDictId(), 0);
|
||||
|
||||
ToastUtils.showShort("暂无区域数据");
|
||||
}
|
||||
if (i == 1) {
|
||||
onShowAreaPicker();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
}
|
||||
} else {
|
||||
|
||||
ToastUtils.showShort("暂无区域数据");
|
||||
ToastUtils.showShort("获取区域失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
ToastUtils.showShort("获取区域失败");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -767,11 +768,11 @@ public class IssueReportActivity extends BaseActivity {
|
||||
mSelectAreaBean = mAreaList.get(options1);
|
||||
getCommunityList(mSelectAreaBean.getDictId(), 1);
|
||||
})
|
||||
.setTitleText("请选择区域")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
.setTitleText("请选择区域")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
mAreaPicker.setPicker(mAreaList);
|
||||
mAreaPicker.show();
|
||||
}
|
||||
@ -789,36 +790,44 @@ public class IssueReportActivity extends BaseActivity {
|
||||
mProgressDialog.show();
|
||||
}
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.getCommunityList(areaId, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<CommunityBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
mCommunityDis = d;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(List<CommunityBean> communityBeans) {
|
||||
if (null != mProgressDialog && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
.create(LocationApiService.class)
|
||||
.getCommunityList(areaId, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<List<CommunityBean>>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
mCommunityDis = d;
|
||||
}
|
||||
if (null != communityBeans && communityBeans.size() > 0) {
|
||||
if (i == 0) {
|
||||
//第一次
|
||||
if (mUserDepartmentBean != null && !TextUtils.isEmpty(mUserDepartmentBean.getCommunityIds())) {
|
||||
for (int j = 0; j < communityBeans.size(); j++) {
|
||||
if (mUserDepartmentBean.getCommunityIds().contains(communityBeans.get(j).getCommunityId())) {
|
||||
LogUtils.e("=社区匹配到了=");
|
||||
mCommunityList = communityBeans;
|
||||
mTvCommContent.setText(communityBeans.get(j).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(j);
|
||||
break;
|
||||
} else {
|
||||
mCommunityList = communityBeans;
|
||||
mTvCommContent.setText(communityBeans.get(0).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(0);
|
||||
|
||||
@Override
|
||||
public void onNext(List<CommunityBean> communityBeans) {
|
||||
if (null != mProgressDialog && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
}
|
||||
if (null != communityBeans && communityBeans.size() > 0) {
|
||||
if (i == 0) {
|
||||
//第一次
|
||||
if (mUserDepartmentBean != null && !TextUtils.isEmpty(mUserDepartmentBean.getCommunityIds())) {
|
||||
for (int j = 0; j < communityBeans.size(); j++) {
|
||||
if (mUserDepartmentBean.getCommunityIds().contains(communityBeans.get(j).getCommunityId())) {
|
||||
LogUtils.e("=社区匹配到了=");
|
||||
mCommunityList = communityBeans;
|
||||
mTvCommContent.setText(communityBeans.get(j).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(j);
|
||||
break;
|
||||
} else {
|
||||
mCommunityList = communityBeans;
|
||||
mTvCommContent.setText(communityBeans.get(0).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(0);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mCommunityList = communityBeans;
|
||||
mTvCommContent.setText(communityBeans.get(0).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(0);
|
||||
if (mCommunityPicker != null) {
|
||||
mCommunityPicker.setPicker(mCommunityList);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -830,34 +839,26 @@ public class IssueReportActivity extends BaseActivity {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mCommunityList = communityBeans;
|
||||
mTvCommContent.setText(communityBeans.get(0).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(0);
|
||||
if (mCommunityPicker != null) {
|
||||
mCommunityPicker.setPicker(mCommunityList);
|
||||
}
|
||||
mTvCommContent.setText("");
|
||||
mTvCommContent.setHint("请选择社区");
|
||||
mSelectCommBean = null;
|
||||
mCommunityList = null;
|
||||
ToastUtils.showShort("当前区域暂无社区");
|
||||
}
|
||||
} else {
|
||||
mTvCommContent.setText("");
|
||||
mTvCommContent.setHint("请选择社区");
|
||||
mSelectCommBean = null;
|
||||
mCommunityList = null;
|
||||
ToastUtils.showShort("当前区域暂无社区");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (null != mProgressDialog && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (null != mProgressDialog && mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void onShowCommunityPicker() {
|
||||
@ -870,11 +871,11 @@ public class IssueReportActivity extends BaseActivity {
|
||||
mTvCommContent.setText(mCommunityList.get(options1).getCommunityName());
|
||||
mSelectCommBean = mCommunityList.get(options1);
|
||||
})
|
||||
.setTitleText("请选择社区")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
.setTitleText("请选择社区")
|
||||
.setCancelColor(Color.parseColor("#1189FF"))
|
||||
.setSubmitColor(Color.parseColor("#1189FF"))
|
||||
.setTitleColor(Color.parseColor("#1189FF"))
|
||||
.build();
|
||||
mCommunityPicker.setPicker(mCommunityList);
|
||||
}
|
||||
mCommunityPicker.show();
|
||||
@ -889,11 +890,11 @@ public class IssueReportActivity extends BaseActivity {
|
||||
private void showSelectPhoto(AddPhotoBean bean) {
|
||||
hideSoftKeyboard();
|
||||
ButtomDialogView buttomDialogView = new ButtomDialogView.DialogBuilder(mActivity)
|
||||
.setIsBackCancelable(true)
|
||||
.setIscancelable(true)
|
||||
.setShowLocation(Gravity.BOTTOM)
|
||||
.setIsShowFile(false)
|
||||
.build();
|
||||
.setIsBackCancelable(true)
|
||||
.setIscancelable(true)
|
||||
.setShowLocation(Gravity.BOTTOM)
|
||||
.setIsShowFile(false)
|
||||
.build();
|
||||
buttomDialogView.addOnChoseListener(new ButtomDialogView.OnChoseListener() {
|
||||
@Override
|
||||
public void choseFile() {
|
||||
@ -904,7 +905,7 @@ public class IssueReportActivity extends BaseActivity {
|
||||
mCurrentBean = bean;
|
||||
Intent intent = new Intent(Intent.ACTION_PICK, null);
|
||||
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
|
||||
"image/*");
|
||||
"image/*");
|
||||
startActivityForResult(intent, BaseUrlApi.PHOTO_REQUEST);
|
||||
buttomDialogView.dismiss();
|
||||
}
|
||||
@ -985,10 +986,10 @@ public class IssueReportActivity extends BaseActivity {
|
||||
ContentResolver cr = mActivity.getContentResolver();
|
||||
StringBuffer buff = new StringBuffer();
|
||||
buff.append("(").append(MediaStore.Images.ImageColumns.DATA).append("=")
|
||||
.append("'" + path + "'").append(")");
|
||||
.append("'" + path + "'").append(")");
|
||||
Cursor cur = cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
|
||||
new String[]{MediaStore.Images.ImageColumns._ID},
|
||||
buff.toString(), null, null);
|
||||
new String[]{MediaStore.Images.ImageColumns._ID},
|
||||
buff.toString(), null, null);
|
||||
int index = 0;
|
||||
for (cur.moveToFirst(); !cur.isAfterLast(); cur.moveToNext()) {
|
||||
index = cur.getColumnIndex(MediaStore.Images.ImageColumns._ID);
|
||||
@ -1022,74 +1023,74 @@ public class IssueReportActivity extends BaseActivity {
|
||||
progressDialog.show();
|
||||
String pathStr = getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath() + PathConfig.CATCH_PATH;
|
||||
Luban.with(mActivity)
|
||||
.load(picPath)
|
||||
.ignoreBy(100)
|
||||
.setTargetDir(pathStr)
|
||||
.filter(path -> !(TextUtils.isEmpty(path) || path.toLowerCase().endsWith(".gif")))
|
||||
.setCompressListener(new OnCompressListener() {
|
||||
@Override
|
||||
public void onStart() {
|
||||
.load(picPath)
|
||||
.ignoreBy(100)
|
||||
.setTargetDir(pathStr)
|
||||
.filter(path -> !(TextUtils.isEmpty(path) || path.toLowerCase().endsWith(".gif")))
|
||||
.setCompressListener(new OnCompressListener() {
|
||||
@Override
|
||||
public void onStart() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(File file) {
|
||||
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
|
||||
MultipartBody.Part body = MultipartBody.Part.createFormData("image", file.getName(), requestFile);
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.uploadImage(body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<BaseUserBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(BaseUserBean baseUserBean) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传成功");
|
||||
mPhotoIds += (baseUserBean.getData() + ",");
|
||||
mCurrentBean.setId(baseUserBean.getData());
|
||||
mCurrentBean.setPath(picPath);
|
||||
if (mPhotos.size() < 4) {
|
||||
mPhotos.add(new AddPhotoBean());
|
||||
}
|
||||
mPhotoAdapter.notifyDataSetChanged();
|
||||
mCurrentBean = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传失败,请稍后重试.");
|
||||
if (file.exists()) {
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("图片上传失败,请稍后重试");
|
||||
}
|
||||
})
|
||||
.launch();
|
||||
|
||||
@Override
|
||||
public void onSuccess(File file) {
|
||||
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
|
||||
MultipartBody.Part body = MultipartBody.Part.createFormData("image", file.getName(), requestFile);
|
||||
RetrofitManager.getInstance()
|
||||
.create(LocationApiService.class)
|
||||
.uploadImage(body, UserLgUtils.getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Observer<BaseUserBean>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(BaseUserBean baseUserBean) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传成功");
|
||||
mPhotoIds += (baseUserBean.getData() + ",");
|
||||
mCurrentBean.setId(baseUserBean.getData());
|
||||
mCurrentBean.setPath(picPath);
|
||||
if (mPhotos.size() < 4) {
|
||||
mPhotos.add(new AddPhotoBean());
|
||||
}
|
||||
mPhotoAdapter.notifyDataSetChanged();
|
||||
mCurrentBean = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (progressDialog != null && progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("上传失败,请稍后重试.");
|
||||
if (file.exists()) {
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (progressDialog.isShowing()) {
|
||||
progressDialog.dismiss();
|
||||
}
|
||||
ToastUtils.showShort("图片上传失败,请稍后重试");
|
||||
}
|
||||
})
|
||||
.launch();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -0,0 +1,302 @@
|
||||
package com.sucstepsoft.realtimelocation.beans;
|
||||
|
||||
public class IssueDetailBean {
|
||||
|
||||
private String areaId;
|
||||
private String areaName;
|
||||
private String caseAudio;
|
||||
private String caseContent;
|
||||
private String caseFlowForward;
|
||||
private String caseFlowType;
|
||||
private String caseLatitude;
|
||||
private String caseLongitude;
|
||||
private String caseNumber;
|
||||
private String casePhotos;
|
||||
private String casePosition;
|
||||
private String caseReporter;
|
||||
private String caseSource;
|
||||
private String caseStatus;
|
||||
private String caseTypeId;
|
||||
private String caseTypeName;
|
||||
private String communityId;
|
||||
private String communityName;
|
||||
private String gmtModified;
|
||||
private String grade;
|
||||
private String handleCreateTime;
|
||||
private String handleOpinion;
|
||||
private String handlePhotos;
|
||||
private String handleUserCommunityName;
|
||||
private String handleUserDepartmentName;
|
||||
private String handleUserName;
|
||||
private String handleUserUsername;
|
||||
private int isAccept;
|
||||
private int isDeny;
|
||||
private int isSelf;
|
||||
private String readTime;
|
||||
private String reportCaseId;
|
||||
private String reportDate;
|
||||
|
||||
public String getAreaId() {
|
||||
return areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getCaseAudio() {
|
||||
return caseAudio;
|
||||
}
|
||||
|
||||
public void setCaseAudio(String caseAudio) {
|
||||
this.caseAudio = caseAudio;
|
||||
}
|
||||
|
||||
public String getCaseContent() {
|
||||
return caseContent;
|
||||
}
|
||||
|
||||
public void setCaseContent(String caseContent) {
|
||||
this.caseContent = caseContent;
|
||||
}
|
||||
|
||||
public String getCaseFlowForward() {
|
||||
return caseFlowForward;
|
||||
}
|
||||
|
||||
public void setCaseFlowForward(String caseFlowForward) {
|
||||
this.caseFlowForward = caseFlowForward;
|
||||
}
|
||||
|
||||
public String getCaseFlowType() {
|
||||
return caseFlowType;
|
||||
}
|
||||
|
||||
public void setCaseFlowType(String caseFlowType) {
|
||||
this.caseFlowType = caseFlowType;
|
||||
}
|
||||
|
||||
public String getCaseLatitude() {
|
||||
return caseLatitude;
|
||||
}
|
||||
|
||||
public void setCaseLatitude(String caseLatitude) {
|
||||
this.caseLatitude = caseLatitude;
|
||||
}
|
||||
|
||||
public String getCaseLongitude() {
|
||||
return caseLongitude;
|
||||
}
|
||||
|
||||
public void setCaseLongitude(String caseLongitude) {
|
||||
this.caseLongitude = caseLongitude;
|
||||
}
|
||||
|
||||
public String getCaseNumber() {
|
||||
return caseNumber;
|
||||
}
|
||||
|
||||
public void setCaseNumber(String caseNumber) {
|
||||
this.caseNumber = caseNumber;
|
||||
}
|
||||
|
||||
public String getCasePhotos() {
|
||||
return casePhotos;
|
||||
}
|
||||
|
||||
public void setCasePhotos(String casePhotos) {
|
||||
this.casePhotos = casePhotos;
|
||||
}
|
||||
|
||||
public String getCasePosition() {
|
||||
return casePosition;
|
||||
}
|
||||
|
||||
public void setCasePosition(String casePosition) {
|
||||
this.casePosition = casePosition;
|
||||
}
|
||||
|
||||
public String getCaseReporter() {
|
||||
return caseReporter;
|
||||
}
|
||||
|
||||
public void setCaseReporter(String caseReporter) {
|
||||
this.caseReporter = caseReporter;
|
||||
}
|
||||
|
||||
public String getCaseSource() {
|
||||
return caseSource;
|
||||
}
|
||||
|
||||
public void setCaseSource(String caseSource) {
|
||||
this.caseSource = caseSource;
|
||||
}
|
||||
|
||||
public String getCaseStatus() {
|
||||
return caseStatus;
|
||||
}
|
||||
|
||||
public void setCaseStatus(String caseStatus) {
|
||||
this.caseStatus = caseStatus;
|
||||
}
|
||||
|
||||
public String getCaseTypeId() {
|
||||
return caseTypeId;
|
||||
}
|
||||
|
||||
public void setCaseTypeId(String caseTypeId) {
|
||||
this.caseTypeId = caseTypeId;
|
||||
}
|
||||
|
||||
public String getCaseTypeName() {
|
||||
return caseTypeName;
|
||||
}
|
||||
|
||||
public void setCaseTypeName(String caseTypeName) {
|
||||
this.caseTypeName = caseTypeName;
|
||||
}
|
||||
|
||||
public String getCommunityId() {
|
||||
return communityId;
|
||||
}
|
||||
|
||||
public void setCommunityId(String communityId) {
|
||||
this.communityId = communityId;
|
||||
}
|
||||
|
||||
public String getCommunityName() {
|
||||
return communityName;
|
||||
}
|
||||
|
||||
public void setCommunityName(String communityName) {
|
||||
this.communityName = communityName;
|
||||
}
|
||||
|
||||
public String getGmtModified() {
|
||||
return gmtModified;
|
||||
}
|
||||
|
||||
public void setGmtModified(String gmtModified) {
|
||||
this.gmtModified = gmtModified;
|
||||
}
|
||||
|
||||
public String getGrade() {
|
||||
return grade;
|
||||
}
|
||||
|
||||
public void setGrade(String grade) {
|
||||
this.grade = grade;
|
||||
}
|
||||
|
||||
public String getHandleCreateTime() {
|
||||
return handleCreateTime;
|
||||
}
|
||||
|
||||
public void setHandleCreateTime(String handleCreateTime) {
|
||||
this.handleCreateTime = handleCreateTime;
|
||||
}
|
||||
|
||||
public String getHandleOpinion() {
|
||||
return handleOpinion;
|
||||
}
|
||||
|
||||
public void setHandleOpinion(String handleOpinion) {
|
||||
this.handleOpinion = handleOpinion;
|
||||
}
|
||||
|
||||
public String getHandlePhotos() {
|
||||
return handlePhotos;
|
||||
}
|
||||
|
||||
public void setHandlePhotos(String handlePhotos) {
|
||||
this.handlePhotos = handlePhotos;
|
||||
}
|
||||
|
||||
public String getHandleUserCommunityName() {
|
||||
return handleUserCommunityName;
|
||||
}
|
||||
|
||||
public void setHandleUserCommunityName(String handleUserCommunityName) {
|
||||
this.handleUserCommunityName = handleUserCommunityName;
|
||||
}
|
||||
|
||||
public String getHandleUserDepartmentName() {
|
||||
return handleUserDepartmentName;
|
||||
}
|
||||
|
||||
public void setHandleUserDepartmentName(String handleUserDepartmentName) {
|
||||
this.handleUserDepartmentName = handleUserDepartmentName;
|
||||
}
|
||||
|
||||
public String getHandleUserName() {
|
||||
return handleUserName;
|
||||
}
|
||||
|
||||
public void setHandleUserName(String handleUserName) {
|
||||
this.handleUserName = handleUserName;
|
||||
}
|
||||
|
||||
public String getHandleUserUsername() {
|
||||
return handleUserUsername;
|
||||
}
|
||||
|
||||
public void setHandleUserUsername(String handleUserUsername) {
|
||||
this.handleUserUsername = handleUserUsername;
|
||||
}
|
||||
|
||||
public int getIsAccept() {
|
||||
return isAccept;
|
||||
}
|
||||
|
||||
public void setIsAccept(int isAccept) {
|
||||
this.isAccept = isAccept;
|
||||
}
|
||||
|
||||
public int getIsDeny() {
|
||||
return isDeny;
|
||||
}
|
||||
|
||||
public void setIsDeny(int isDeny) {
|
||||
this.isDeny = isDeny;
|
||||
}
|
||||
|
||||
public int getIsSelf() {
|
||||
return isSelf;
|
||||
}
|
||||
|
||||
public void setIsSelf(int isSelf) {
|
||||
this.isSelf = isSelf;
|
||||
}
|
||||
|
||||
public String getReadTime() {
|
||||
return readTime;
|
||||
}
|
||||
|
||||
public void setReadTime(String readTime) {
|
||||
this.readTime = readTime;
|
||||
}
|
||||
|
||||
public String getReportCaseId() {
|
||||
return reportCaseId;
|
||||
}
|
||||
|
||||
public void setReportCaseId(String reportCaseId) {
|
||||
this.reportCaseId = reportCaseId;
|
||||
}
|
||||
|
||||
public String getReportDate() {
|
||||
return reportDate;
|
||||
}
|
||||
|
||||
public void setReportDate(String reportDate) {
|
||||
this.reportDate = reportDate;
|
||||
}
|
||||
}
|
@ -102,6 +102,7 @@ public class MineIssueFragment extends LazyFragment {
|
||||
*/
|
||||
private void showIssueDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(mActivity, IssueDetailActivity.class);
|
||||
intent.putExtra("id",bean.getReportCaseId());
|
||||
intent.putExtra("bean", bean);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
@ -122,6 +122,7 @@ public class PendingFragment extends LazyFragment {
|
||||
*/
|
||||
private void showIssueDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(mActivity, IssueDetailActivity.class);
|
||||
intent.putExtra("id",bean.getReportCaseId());
|
||||
intent.putExtra("bean", bean);
|
||||
switch (bean.getCaseStatus()) {
|
||||
case "0"://待受理
|
||||
|
@ -106,6 +106,7 @@ public class SpecialCaseDisFragment extends LazyFragment {
|
||||
*/
|
||||
private void showIssueDetail(IssueSubBean.RowsBean bean) {
|
||||
Intent intent = new Intent(mActivity, IssueDetailActivity.class);
|
||||
intent.putExtra("id",bean.getReportCaseId());
|
||||
intent.putExtra("bean", bean);
|
||||
switch (bean.getCaseStatus()) {
|
||||
case "0"://待受理
|
||||
|
@ -22,6 +22,7 @@ import com.sucstepsoft.realtimelocation.beans.HireHouseDetailBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.HouseLivePersonBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.HousePersonBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.HousePersonListBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.IssueDetailBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.IssueSubBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.LeaveDetailBean;
|
||||
import com.sucstepsoft.realtimelocation.beans.LeaveListBean;
|
||||
@ -455,7 +456,7 @@ public interface LocationApiService {
|
||||
|
||||
@Headers({"base_url_name:dict"})
|
||||
@GET("app/reportcase/getreportcase/{reportCaseId}")
|
||||
Observable<Object> getIssueDetail(@Path("reportCaseId") String id, @Header("token") String token);
|
||||
Observable<IssueDetailBean> getIssueDetail(@Path("reportCaseId") String id, @Header("token") String token);
|
||||
|
||||
//GET /app/reportcase/getreportcase/{reportCaseId}
|
||||
|
||||
|
@ -80,9 +80,8 @@ public class ExpandableLinearLayout extends LinearLayout implements View.OnClick
|
||||
*/
|
||||
private void findViews() {
|
||||
bottomView = View.inflate(getContext(), R.layout.item_ell_bottom, null);
|
||||
ivArrow = (ImageView) bottomView.findViewById(R.id.iv_arrow);
|
||||
|
||||
tvTip = (TextView) bottomView.findViewById(R.id.tv_tip);
|
||||
ivArrow = bottomView.findViewById(R.id.iv_arrow);
|
||||
tvTip = bottomView.findViewById(R.id.tv_tip);
|
||||
tvTip.getPaint().setTextSize(fontSize);
|
||||
tvTip.setTextColor(textColor);
|
||||
ivArrow.setImageResource(arrowResId);
|
||||
|
BIN
app/src/main/res/drawable-xhdpi/ic_issue_state_title_icon.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_issue_state_title_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
@ -10,111 +10,48 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="15dp"
|
||||
android:orientation="vertical">
|
||||
<!-- 案件详情 -->
|
||||
android:layout_height="100dp"
|
||||
android:background="@color/titleBar"
|
||||
android:orientation="horizontal"
|
||||
android:padding="25dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/ic_issue_state_title_icon" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_state"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="20dp"
|
||||
tools:text="状态" />
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v4.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="70dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:background="@drawable/shp_rectangle_white_01">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shape_rectangle_white"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp"
|
||||
tools:visibility="visible">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_up_org"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_blue"
|
||||
android:textSize="18sp"
|
||||
tools:text="稀土路街道办事处" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_state"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/text_blue"
|
||||
android:textSize="10sp"
|
||||
tools:text="状态" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="描述" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:background="@drawable/shp_line_match"
|
||||
android:layerType="software" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_up_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:padding="5dp"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="上报时间200123421341234" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:background="@drawable/shp_line_match"
|
||||
android:layerType="software" />
|
||||
|
||||
android:orientation="vertical">
|
||||
<!-- 案件详情 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_type"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="上报类型:垃圾" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_up_user"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="上报人员:张三" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:background="@drawable/shp_line_match"
|
||||
android:layerType="software" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_voice"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
android:background="@drawable/shape_rectangle_white"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@ -123,356 +60,443 @@
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice"
|
||||
android:layout_width="wrap_content"
|
||||
android:id="@+id/tv_up_org"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_record_video"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="录音"
|
||||
android:textColor="@color/text_80_gray" />
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16dp"
|
||||
tools:text="稀土路街道办事处" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice_anim"
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:background="@drawable/anim_yuyin_sign"
|
||||
android:visibility="visible" />
|
||||
android:id="@+id/tv_up_time"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="right"
|
||||
android:textColor="@color/text_80_gray"
|
||||
android:textSize="12dp"
|
||||
tools:text="2022-10-16 12:12:12" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="描述" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/black"
|
||||
tools:text="上报类型:垃圾" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_up_user"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="10dp"
|
||||
android:textColor="@color/black"
|
||||
tools:text="上报人员:张三" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_voice"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/shape_bottom_line"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_record_video"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="录音"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice_anim"
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:background="@drawable/anim_yuyin_sign"
|
||||
android:visibility="visible" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_photos"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:background="@drawable/shp_line_match"
|
||||
android:layerType="software" />
|
||||
</LinearLayout>
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp" />
|
||||
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_photos"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="11dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:textColor="@color/text_blue"
|
||||
tools:text="地址" />
|
||||
|
||||
<com.sucstepsoft.realtimelocation.widget.NoScrollMapView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<RelativeLayout
|
||||
<com.sucstepsoft.realtimelocation.widget.NoScrollMapView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
android:id="@+id/cv_map"
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
app:cardCornerRadius="10dp">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.baidu.mapapi.map.TextureMapView
|
||||
android:id="@+id/tmv_map"
|
||||
<android.support.v7.widget.CardView
|
||||
android:id="@+id/cv_map"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
app:cardCornerRadius="5dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_reload"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@id/cv_map"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/bm_btn_background"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp" />
|
||||
<com.baidu.mapapi.map.TextureMapView
|
||||
android:id="@+id/tmv_map"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</com.sucstepsoft.realtimelocation.widget.NoScrollMapView>
|
||||
</LinearLayout>
|
||||
<!--展示案件处理-->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_issue_dis_detail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/gray_ef"
|
||||
android:textColor="@color/text_blue"
|
||||
tools:text="地址" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="案件处理详情"
|
||||
android:textSize="14sp" />
|
||||
<Button
|
||||
android:id="@+id/btn_reload"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tv_issue_address"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/bm_btn_background"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</com.sucstepsoft.realtimelocation.widget.NoScrollMapView>
|
||||
</LinearLayout>
|
||||
<!--展示案件处理-->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_issue_dis_detail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/shape_rectangle_white"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/issue_report_title"
|
||||
android:drawableLeft="@drawable/ic_item_title_icon_rec"
|
||||
android:drawablePadding="5dp"
|
||||
android:padding="8dp"
|
||||
android:text="案件处理详情"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp">
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="处理人" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_handle_user"
|
||||
style="@style/sel_text_show" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="处理时间" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_handle_time"
|
||||
style="@style/sel_text_show" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_ver">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="案件描述" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_dis_desc"
|
||||
style="@style/item_content_match_ver_gray"
|
||||
android:hint="案件描述"
|
||||
android:minHeight="80dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_dis_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_grade"
|
||||
style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="处理满意度" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_grade"
|
||||
style="@style/sel_text_show"
|
||||
android:hint="处理满意度" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<!-- 案件处理 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_issue_dis"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_dis_title"
|
||||
style="@style/issue_report_title"
|
||||
android:drawableLeft="@drawable/ic_item_title_icon_rec"
|
||||
android:drawablePadding="5dp"
|
||||
android:padding="8dp"
|
||||
android:text="案件处理"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp">
|
||||
|
||||
<LinearLayout style="@style/item_white_ver">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="案件处理描述" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_issue_dis_desc"
|
||||
style="@style/item_content_match_ver_gray"
|
||||
android:hint="请输入处理描述内容"
|
||||
android:inputType="textMultiLine"
|
||||
android:minHeight="80dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_switch_title"
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="处理状态" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/sw_issue_state"
|
||||
style="@style/item_switch"
|
||||
android:checked="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/rl_grade"
|
||||
style="@style/item_white_ver">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="处理满意度" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/rg_appraise"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_diss_1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="非常不满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_diss_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="不满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_so"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="一般"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_ple_1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:checked="true"
|
||||
android:padding="5dp"
|
||||
android:text="满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_ple_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="非常满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
</RadioGroup>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_issue_dis_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_btns"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_handle_user"
|
||||
<Button
|
||||
android:id="@+id/btn_issue_return"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="处理人:张三" />
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:text="转派"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_handle_time"
|
||||
<Button
|
||||
android:id="@+id/btn_issue_dis"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="处理时间" />
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:text="确认处理"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="@drawable/shp_line_match"
|
||||
android:layerType="software" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_dis_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="left"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="处理结果描述" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="@drawable/shp_line_match"
|
||||
android:layerType="software" />
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_dis_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_grade"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
|
||||
android:gravity="right"
|
||||
android:textColor="@color/text_80_gray"
|
||||
tools:text="处理满意度:不满意" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<!-- 案件处理 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_issue_dis"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_dis_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="案件处理"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/shape_rectangle_white"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_issue_dis_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/gray_bg"
|
||||
android:gravity="left"
|
||||
android:hint="请输入处理描述内容"
|
||||
android:minLines="5"
|
||||
android:padding="3dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_accept"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/gray_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_switch_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="处理状态"
|
||||
android:textColor="#ff353535"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/sw_issue_state"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:checked="true"
|
||||
android:switchMinWidth="40dp"
|
||||
android:switchPadding="0dp"
|
||||
android:textOff=""
|
||||
android:textOn=""
|
||||
android:thumb="@drawable/switch_ios_thumb"
|
||||
android:track="@drawable/switch_ios_track_selector" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/rl_grade"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/gray_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="处理满意度"
|
||||
android:textColor="#ff353535"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/rg_appraise"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_diss_1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="非常不满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_diss_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="不满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_so"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="一般"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_ple_1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:checked="true"
|
||||
android:padding="5dp"
|
||||
android:text="满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_ple_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:button="@drawable/sel_radio_cir"
|
||||
android:padding="5dp"
|
||||
android:text="非常满意"
|
||||
android:textColor="@color/col_blue_black" />
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_issue_dis_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_btns"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_issue_return"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:text="转派"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_issue_dis"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:text="确认处理"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
</android.support.v4.widget.NestedScrollView>
|
||||
</RelativeLayout>
|
@ -1,17 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".activitys.issue.IssueReportActivity">
|
||||
|
||||
<ScrollView
|
||||
<android.support.v4.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none">
|
||||
android:layout_marginBottom="80dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@ -19,353 +17,302 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_base_info"
|
||||
style="@style/issue_report_title"
|
||||
android:drawableLeft="@drawable/ic_item_title_icon_rec"
|
||||
android:drawablePadding="5dp"
|
||||
android:padding="8dp"
|
||||
android:text="基本信息"
|
||||
android:text="基础信息"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
app:cardCornerRadius="5dp"
|
||||
app:cardPreventCornerOverlap="true"
|
||||
app:cardUseCompatPadding="false">
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_area_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:drawableRight="@drawable/ic_arrow_gray_down"
|
||||
android:hint="请选择案件所属区域"
|
||||
android:padding="10dp"
|
||||
android:textColor="@color/black"
|
||||
tools:text="区域" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_comm_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:drawableRight="@drawable/ic_arrow_gray_down"
|
||||
android:hint="请选择案件所属社区"
|
||||
android:padding="10dp"
|
||||
android:textColor="@color/black"
|
||||
tools:text="社区" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_type_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:drawableRight="@drawable/ic_arrow_gray_down"
|
||||
android:hint="请选择案件所属类别"
|
||||
android:padding="10dp"
|
||||
android:textColor="@color/black"
|
||||
tools:text="类别" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_source_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:hint="请选择案件来源"
|
||||
android:padding="10dp"
|
||||
android:textColor="@color/black"
|
||||
tools:text="来源" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="自行处理"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/sw_is_self"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:switchMinWidth="40dp"
|
||||
android:switchPadding="0dp"
|
||||
android:textOff=""
|
||||
android:textOn=""
|
||||
android:thumb="@drawable/switch_ios_thumb"
|
||||
android:track="@drawable/switch_ios_track_selector" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_case_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_case_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:drawableRight="@drawable/ic_arrow_gray_down"
|
||||
android:hint="请选择案件分类"
|
||||
android:padding="10dp"
|
||||
android:textColor="@color/black"
|
||||
tools:text="案件分类" />
|
||||
</LinearLayout>
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="街道" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:gravity="left"
|
||||
android:hint="请选择案件地址"
|
||||
android:padding="10dp"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="15sp"
|
||||
tools:text="" />
|
||||
<TextView
|
||||
android:id="@+id/tv_area_content"
|
||||
style="@style/sel_text_arrow"
|
||||
android:hint="请选择案件所属区域" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="社区" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_comm_content"
|
||||
style="@style/sel_text_arrow"
|
||||
android:hint="请选择案件所属社区" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="类别" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_type_content"
|
||||
style="@style/sel_text_arrow"
|
||||
android:hint="请选择案件所属类别" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="来源" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_source_content"
|
||||
style="@style/sel_text_arrow"
|
||||
android:hint="请选择案件来源" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="是否自处理" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/sw_is_self"
|
||||
style="@style/item_switch" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_case_type"
|
||||
style="@style/item_white_bottom_border"
|
||||
>
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="分类" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_case_type"
|
||||
style="@style/sel_text_arrow"
|
||||
android:hint="请选择案件分类" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_bottom_border">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="地址" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_content"
|
||||
style="@style/sel_text_arrow"
|
||||
android:hint="请选择案件发生地址" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_issue_detail_info"
|
||||
style="@style/issue_report_title"
|
||||
android:drawableLeft="@drawable/ic_item_title_icon_rec"
|
||||
android:drawablePadding="5dp"
|
||||
android:padding="8dp"
|
||||
android:text="详细信息"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
app:cardCornerRadius="10dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="true"
|
||||
app:cardUseCompatPadding="false">
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp">
|
||||
|
||||
<LinearLayout style="@style/item_white_ver">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="案件描述" />
|
||||
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_issue_desc"
|
||||
style="@style/item_content_match_ver_gray"
|
||||
android:hint="请输入案件描述内容"
|
||||
android:inputType="textMultiLine"
|
||||
android:minHeight="80dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
android:background="@drawable/shp_rectangle_bottom_border"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/ll_voice"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
<TextView
|
||||
android:id="@+id/tv_voice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_issue_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="left"
|
||||
android:hint="请输入案件描述内容"
|
||||
android:minLines="5"
|
||||
android:padding="8dp"
|
||||
android:textSize="15sp"
|
||||
tools:text="" />
|
||||
</LinearLayout>
|
||||
android:padding="5dp"
|
||||
android:text="录音"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="14dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/shp_rectangle_gray"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:padding="10dp">
|
||||
<ImageView
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_voice"
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice_anim"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:background="@drawable/anim_yuyin_sign"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_record_video"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="录音"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/text_16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_voice_anim"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:background="@drawable/anim_yuyin_sign"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.cjt2325.cameralibrary.videorecord.AudioRecordButton
|
||||
android:id="@+id/arb_audio"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="35dp"
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:gravity="center"
|
||||
android:text="@string/long_click_record"
|
||||
android:textColor="#fff"
|
||||
android:textSize="15sp" />
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.cjt2325.cameralibrary.videorecord.AudioRecordButton
|
||||
android:id="@+id/arb_audio"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:gravity="center"
|
||||
android:text="@string/long_click_record"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/item_white_ver">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title_wrap"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="上传图片" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ic_start_hint" />
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_locale_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
style="@style/style_hint_star"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/rlv_locale_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
tools:itemCount="2"
|
||||
tools:listitem="@layout/item_apply_service_photo" />
|
||||
</LinearLayout>
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:cardCornerRadius="10dp"
|
||||
app:cardPreventCornerOverlap="true"
|
||||
app:cardUseCompatPadding="false">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_submit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:text="上报"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18sp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</android.support.v4.widget.NestedScrollView>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_submit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/sel_btn_submit"
|
||||
android:text="上报"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18dp" />
|
||||
</RelativeLayout>
|
@ -70,7 +70,7 @@
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp"
|
||||
app:defaultItemCount="2"
|
||||
app:defaultItemCount="1"
|
||||
app:expandText="展开"
|
||||
app:hideText="收起"
|
||||
app:tipTextSize="14dp">
|
||||
|
@ -9,8 +9,8 @@ import com.sucstepsoft.cm_utils.constant.PathConfig;
|
||||
*/
|
||||
public class BaseUrlApi {
|
||||
|
||||
public static final String IP = "http://219.147.99.164:8082/usercenter/"; /*正式统一用户*/
|
||||
// public static final String IP = "http://192.168.0.15:7021/usercenter/"; /*测试统一用户*/
|
||||
// public static final String IP = "http://219.147.99.164:8082/usercenter/"; /*正式统一用户*/
|
||||
public static final String IP = "http://192.168.0.15:7021/usercenter/"; /*测试统一用户*/
|
||||
// public static final String IP = "http://175.24.42.217:7000/usercenter/"; /*测试统一用户*/
|
||||
public static final String BASE_URL = IP;
|
||||
public static final String APP_VERSION = BASE_URL + "appCmVersionManagement/getAppVersion";
|
||||
@ -18,9 +18,9 @@ public class BaseUrlApi {
|
||||
public static final String FIELD_SAFETY = BASE_URL + "appFieldSafety/goFloorPlan";
|
||||
public static final int PHOTO_REQUEST = 233;
|
||||
public static final int CAMERA_REQUEST = 123;
|
||||
public static final String BASE_IP_P = "http://219.147.99.164:8082/"; /*正式IP*/
|
||||
// public static final String BASE_IP_P = "http://219.147.99.164:8082/"; /*正式IP*/
|
||||
// public static final String BASE_IP_P = "http://175.24.42.217"; /*演示IP*/
|
||||
// public static final String BASE_IP_P = "http://192.168.0.9:7023/"; /*测试IP*/
|
||||
public static final String BASE_IP_P = "http://192.168.0.15:7022/"; /*测试IP*/
|
||||
public static final String BASE_IP = BASE_IP_P + "servicecity/";/*网格系统*/
|
||||
// public static final String BASE_IP = "http://192.168.0.109:8083/servicecity/";/*测试网格系统*/
|
||||
public static final String BASE_POPULATION_IP = BASE_IP_P + "population/";/*人口系统*/
|
||||
|
Loading…
Reference in New Issue
Block a user