高风险报告

master
hwf453 1 year ago
parent 97ee49780d
commit 2c80144598

@ -81,6 +81,9 @@
tools:ignore="GoogleAppIndexingWarning" tools:ignore="GoogleAppIndexingWarning"
tools:replace="android:allowBackup" tools:replace="android:allowBackup"
tools:targetApi="s"> tools:targetApi="s">
<activity
android:name=".ui.activity.WorkRiskListHuiBaoActivity"
android:exported="false" />
<meta-data <meta-data
android:name="design_width" android:name="design_width"

@ -514,6 +514,8 @@ public class Contans {
public final static String REGULAR_MAINTENANCE_STAFF = "api/real_time_data/regular_maintenance_staff"; public final static String REGULAR_MAINTENANCE_STAFF = "api/real_time_data/regular_maintenance_staff";
//查询每日作业风险清单 //查询每日作业风险清单
public final static String DAYLY_RISK_LIST = "v1/api/operation/risk/list"; public final static String DAYLY_RISK_LIST = "v1/api/operation/risk/list";
//每日作业风险清单汇报
public final static String DAYLY_RISK_LIST_HUIBAO = "v1/api/operation/risk/list";

@ -449,7 +449,7 @@ class AddDagerEnterApplyActivity :
override fun onFailed(what: Int, response: Response<String?>?) { override fun onFailed(what: Int, response: Response<String?>?) {
} }
}, true, true, "提交数据中...") }, true, true, "请稍候...")
} }
//修改危化品入厂申请 //修改危化品入厂申请

@ -170,8 +170,8 @@ class LoginActivity : BaseActivityOaToolbarViewBinding<ActivityLoginBinding>() {
if (BuildConfig.LOG_ERROR) { if (BuildConfig.LOG_ERROR) {
// 管理员 // 管理员
// binding.etUsername.setText("ZHPS_Admin") binding.etUsername.setText("ZHPS_Admin")
// binding.etPassword.setText("Rehome.zhps@996") binding.etPassword.setText("Rehome.zhps@996")
//马 //马
// binding.etUsername.setText("310482") // binding.etUsername.setText("310482")

@ -192,35 +192,46 @@ class WorkRiskListActivity : BaseActivityOaToolbarViewBinding<ActivityWorkRiskLi
} }
private fun bindViewClick() { private fun bindViewClick() {
binding.llA.setOnClickListener { binding.tvA.setOnClickListener {
datas.clear() datas.clear()
datas.addAll(dataA) datas.addAll(dataA)
mAdapter.notifyDataSetChanged() mAdapter.notifyDataSetChanged()
} }
binding.llB.setOnClickListener { binding.tvB.setOnClickListener {
datas.clear() datas.clear()
datas.addAll(dataB) datas.addAll(dataB)
mAdapter.notifyDataSetChanged() mAdapter.notifyDataSetChanged()
} }
binding.llC1.setOnClickListener { binding.tvC1.setOnClickListener {
datas.clear() datas.clear()
datas.addAll(dataC1) datas.addAll(dataC1)
mAdapter.notifyDataSetChanged() mAdapter.notifyDataSetChanged()
} }
binding.llC2.setOnClickListener { binding.tvC2.setOnClickListener {
datas.clear() datas.clear()
datas.addAll(dataC2) datas.addAll(dataC2)
mAdapter.notifyDataSetChanged() mAdapter.notifyDataSetChanged()
} }
binding.llC3.setOnClickListener { binding.tvC3.setOnClickListener {
datas.clear() datas.clear()
datas.addAll(dataC3) datas.addAll(dataC3)
mAdapter.notifyDataSetChanged() mAdapter.notifyDataSetChanged()
} }
binding.llLowLisk.setOnClickListener { binding.tvLowLisk.setOnClickListener {
datas.clear() datas.clear()
datas.addAll(dataLowRisk) datas.addAll(dataLowRisk)
mAdapter.notifyDataSetChanged() mAdapter.notifyDataSetChanged()
} }
binding.tvADesc.setOnClickListener {
toWorkRiskListHuiBaoActivity("A")
}
}
private fun toWorkRiskListHuiBaoActivity(type:String){
//工作情况汇报
val intent = Intent(context, WorkRiskListHuiBaoActivity::class.java)
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP)
intent.putExtra("type",type)
startActivity(intent)
} }
} }

@ -0,0 +1,123 @@
package com.rehome.zhdcoa.utils;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.text.TextUtils;
import android.util.Log;
import com.rehome.zhdcoa.BuildConfig;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
public class BitmapCompressUtils {
/**
*
* @param image
* @return
*/
public static Bitmap compressImage(Bitmap image) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
image.compress(Bitmap.CompressFormat.JPEG, 100, baos);// 质量压缩方法这里100表示不压缩把压缩后的数据存放到baos中
int options = 90;
while (baos.toByteArray().length / 1024 > 100) { // 循环判断如果压缩后图片是否大于100kb,大于继续压缩
baos.reset(); // 重置baos即清空baos
image.compress(Bitmap.CompressFormat.JPEG, options, baos);// 这里压缩options%把压缩后的数据存放到baos中
options -= 10;// 每次都减少10
}
ByteArrayInputStream isBm = new ByteArrayInputStream(baos.toByteArray());// 把压缩后的数据baos存放到ByteArrayInputStream中
Bitmap bitmap = BitmapFactory.decodeStream(isBm, null, null);// 把ByteArrayInputStream数据生成图片
return bitmap;
}
/**
*
* @param srcPath
* @return
*/
public static Bitmap getimage(String srcPath) {
BitmapFactory.Options newOpts = new BitmapFactory.Options();
// 开始读入图片此时把options.inJustDecodeBounds 设回true了
newOpts.inJustDecodeBounds = true;
Bitmap bitmap = BitmapFactory.decodeFile(srcPath, newOpts);// 此时返回bm为空
newOpts.inJustDecodeBounds = false;
int w = newOpts.outWidth;
int h = newOpts.outHeight;
// 现在主流手机比较多是800*480分辨率所以高和宽我们设置为
float hh = 800f;// 这里设置高度为800f
float ww = 480f;// 这里设置宽度为480f
// 缩放比。由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可
int be = 1;// be=1表示不缩放
if (w > h && w > ww) {// 如果宽度大的话根据宽度固定大小缩放
be = (int) (newOpts.outWidth / ww);
} else if (w < h && h > hh) {// 如果高度高的话根据宽度固定大小缩放
be = (int) (newOpts.outHeight / hh);
}
if (be <= 0)
be = 1;
newOpts.inSampleSize = be;// 设置缩放比例
// 重新读入图片注意此时已经把options.inJustDecodeBounds 设回false了
bitmap = BitmapFactory.decodeFile(srcPath, newOpts);
showLog("---------------");
showLog("w:"+String.valueOf(bitmap.getWidth()) + " h:" + bitmap.getHeight());
return compressImage(bitmap);// 压缩好比例大小后再进行质量压缩
}
/**
*
* @param image Bitmap
* @return
*/
public static Bitmap compressScale(Bitmap image) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
image.compress(Bitmap.CompressFormat.JPEG, 100, baos);
// 判断如果图片大于1M,进行压缩避免在生成图片BitmapFactory.decodeStream时溢出
if (baos.toByteArray().length / 1024 > 1024) {
baos.reset();// 重置baos即清空baos
image.compress(Bitmap.CompressFormat.JPEG, 80, baos);// 这里压缩50%把压缩后的数据存放到baos中
}
ByteArrayInputStream isBm = new ByteArrayInputStream(baos.toByteArray());
BitmapFactory.Options newOpts = new BitmapFactory.Options();
// 开始读入图片此时把options.inJustDecodeBounds 设回true了
newOpts.inJustDecodeBounds = true;
Bitmap bitmap = BitmapFactory.decodeStream(isBm, null, newOpts);
newOpts.inJustDecodeBounds = false;
int w = newOpts.outWidth;
int h = newOpts.outHeight;
showLog("---------------");
showLog("w:"+String.valueOf(w) + " h:" + h);
// 现在主流手机比较多是800*480分辨率所以高和宽我们设置为
// float hh = 800f;// 这里设置高度为800f
// float ww = 480f;// 这里设置宽度为480f
float hh = 512f;
float ww = 512f;
// 缩放比。由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可
int be = 1;// be=1表示不缩放
if (w > h && w > ww) {// 如果宽度大的话根据宽度固定大小缩放
be = (int) (newOpts.outWidth / ww);
} else if (w < h && h > hh) { // 如果高度高的话根据高度固定大小缩放
be = (int) (newOpts.outHeight / hh);
}
if (be <= 0)
be = 1;
newOpts.inSampleSize = be; // 设置缩放比例
// newOpts.inPreferredConfig = Config.RGB_565;//降低图片从ARGB888到RGB565
// 重新读入图片注意此时已经把options.inJustDecodeBounds 设回false了
isBm = new ByteArrayInputStream(baos.toByteArray());
bitmap = BitmapFactory.decodeStream(isBm, null, newOpts);
showLog("---------------");
showLog("w:"+String.valueOf(bitmap.getWidth()) + " h:" + bitmap.getHeight());
return compressImage(bitmap);// 压缩好比例大小后再进行质量压缩
//return bitmap;
}
public static void showLog(String logText) {
if (BuildConfig.LOG_ERROR) {
if(TextUtils.isEmpty(logText)){
Log.i("app", "logText is null");
}else{
Log.i("app", logText);
}
}
}
}

@ -0,0 +1,158 @@
package com.rehome.zhdcoa.utils;
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.YuvImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
/**
* @Author yocn
* @Date 2019/8/5 4:11 PM
* @ClassName BitmapUtil
*/
public class BitmapUtil {
public static Bitmap rotateBitmap(Bitmap origin, float rotate) {
if (origin == null) {
return null;
}
int width = origin.getWidth();
int height = origin.getHeight();
Matrix matrix = new Matrix();
matrix.setRotate(rotate);
// 围绕原地进行旋转
Bitmap newBM = Bitmap.createBitmap(origin, 0, 0, width, height, matrix, false);
if (newBM.equals(origin)) {
return newBM;
}
origin.recycle();
return newBM;
}
public static byte[] rotateYUV420Degree90(byte[] data, int imageWidth, int imageHeight) {
byte[] yuv = new byte[imageWidth * imageHeight * 3 / 2];
// Rotate the Y luma
int i = 0;
for (int x = 0; x < imageWidth; x++) {
for (int y = imageHeight - 1; y >= 0; y--) {
yuv[i] = data[y * imageWidth + x];
i++;
}
}
// Rotate the U and V color components
i = imageWidth * imageHeight * 3 / 2 - 1;
for (int x = imageWidth - 1; x > 0; x = x - 2) {
for (int y = 0; y < imageHeight / 2; y++) {
yuv[i] = data[(imageWidth * imageHeight) + (y * imageWidth) + x];
i--;
yuv[i] = data[(imageWidth * imageHeight) + (y * imageWidth) + (x - 1)];
i--;
}
}
return yuv;
}
public static Bitmap getBitmapImageFromYUV(byte[] data, int width, int height) {
YuvImage yuvimage = new YuvImage(data, ImageFormat.NV21, width, height, null);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
yuvimage.compressToJpeg(new Rect(0, 0, width, height), 80, baos);
byte[] jdata = baos.toByteArray();
BitmapFactory.Options bitmapFatoryOptions = new BitmapFactory.Options();
bitmapFatoryOptions.inPreferredConfig = Bitmap.Config.RGB_565;
Bitmap bmp = BitmapFactory.decodeByteArray(jdata, 0, jdata.length, bitmapFatoryOptions);
return bmp;
}
public static byte[] convertColorToByte(int color[]) {
if (color == null) {
return null;
}
byte[] data = new byte[color.length * 3];
for (int i = 0; i < color.length; i++) {
data[i * 3] = (byte) (color[i] >> 16 & 0xff);
data[i * 3 + 1] = (byte) (color[i] >> 8 & 0xff);
data[i * 3 + 2] = (byte) (color[i] & 0xff);
}
return data;
}
public static void dumpFile(String fileName, byte[] data) {
FileOutputStream outStream;
try {
outStream = new FileOutputStream(fileName);
} catch (IOException ioe) {
throw new RuntimeException("Unable to create output file " + fileName, ioe);
}
try {
outStream.write(data);
outStream.close();
} catch (IOException ioe) {
throw new RuntimeException("failed writing data to file " + fileName, ioe);
}
}
/**
* I420nv21
*/
public static byte[] I420Tonv21(byte[] data, int width, int height) {
byte[] ret = new byte[data.length];
int total = width * height;
ByteBuffer bufferY = ByteBuffer.wrap(ret, 0, total);
ByteBuffer bufferVU = ByteBuffer.wrap(ret, total, total / 2);
bufferY.put(data, 0, total);
for (int i = 0; i < total / 4; i += 1) {
bufferVU.put(data[i + total + total / 4]);
bufferVU.put(data[total + i]);
}
return ret;
}
public static void saveBitmap(String path, Bitmap bitmap) {
//获取文件
File file = new File(path);
FileOutputStream fos = null;
try {
fos = new FileOutputStream(file);
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);
fos.flush();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (fos != null) {
fos.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public static Bitmap getBitmapFromAssets(Context context, String path) {
Bitmap bitmap = null;
AssetManager am = context.getResources().getAssets();
try {
//读取assert 的文图
InputStream is = am.open(path);
bitmap = BitmapFactory.decodeStream(is);
} catch (Exception e) {
}
return bitmap;
}
}

@ -0,0 +1,117 @@
package com.rehome.zhdcoa.utils;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.YuvImage;
import android.hardware.Camera;
import android.util.Base64;
import java.io.ByteArrayOutputStream;
/**
*
*/
public class BitmapUtils {
/**
* bytebitmap
*
* @param data
* @return bm
*/
public static Bitmap ByteToBitmap(byte[] data, Camera.Size previewSize) {
Bitmap bm = null;
ByteArrayOutputStream baos = null;
try {
YuvImage yuvimage = new YuvImage(data, ImageFormat.NV21, previewSize.width, previewSize.height, null);
baos = new ByteArrayOutputStream();
//这里 80 是图片质量,取值范围 0-100100为品质最高
yuvimage.compressToJpeg(new Rect(0, 0, previewSize.width, previewSize.height), 80, baos);
byte[] jdata = baos.toByteArray();
bm = BitmapFactory.decodeByteArray(jdata, 0, jdata.length);//将data byte型数组转换成bitmap文件
// 旋转90度
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (baos != null) {
baos.flush();
baos.close();
}
} catch (Exception e) {
e.printStackTrace();
}
}
return bm;
}
/**
* base64bitmap
*
* @param base64Data
* @return
*/
public static Bitmap Base64ToBitmap(String base64Data) {
byte[] bytes = Base64.decode(base64Data, Base64.DEFAULT);
return BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
}
/*
*/
public static Bitmap resizeBitmap(Bitmap bm, int ivbWidth, int ivbHeight) {
Bitmap resizeBmp = null;
try {
int width = bm.getWidth();
int height = bm.getHeight();
Matrix matrix = new Matrix();
float scaleWidth = ((float) ivbWidth) / width;
float scaleHeight = ((float) ivbHeight) / height;
matrix.postScale(scaleWidth, scaleHeight); //长和宽放大缩小的比例
resizeBmp = Bitmap.createBitmap(bm, 0, 0, width, height, matrix, true);
} catch (Exception e) {
e.printStackTrace();
}
return resizeBmp;
}
/**
*
*
* @param bitmap bitmap
* @return bitmap
*/
public static Bitmap cropBitmap(Bitmap bitmap, int x1, int y1, int x2, int y2) {
if (x1 + x2 + y2 + y1 == 0) {
return null;
}
int cropWidth = x2 - x1;
int cropHeight = y2 - y1;
int crop_x = x1;
int crop_y = y1;
return Bitmap.createBitmap(bitmap, crop_x, crop_y, cropWidth, cropHeight, null, false);
}
public static byte[] bitmapToByte(Bitmap bitmap) {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
byte[] byteArray = stream.toByteArray();
return byteArray;
}
}

@ -67,7 +67,6 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:id="@+id/ll_a"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -76,19 +75,21 @@
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/tv_a_desc"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center|right"
android:layout_marginStart="30dp" android:layout_weight="1"
android:textSize="20sp" android:textSize="20sp"
android:text="A:" /> android:text="A:" />
<TextView <TextView
android:id="@+id/tv_a" android:id="@+id/tv_a"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:textColor="#FFA500" android:textColor="#FFA500"
@ -96,7 +97,6 @@
android:text="0" /> android:text="0" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/ll_b"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -105,19 +105,21 @@
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/tv_b_desc"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginStart="20dp" android:gravity="center|right"
android:gravity="center" android:layout_weight="1"
android:text="B:" android:textSize="20sp"
android:textSize="20sp" /> android:text="B:" />
<TextView <TextView
android:id="@+id/tv_b" android:id="@+id/tv_b"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:textColor="#FFA500" android:textColor="#FFA500"
@ -126,7 +128,6 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/ll_c1"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -135,18 +136,21 @@
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/tv_c1_desc"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center|right"
android:layout_weight="1.2"
android:textSize="20sp" android:textSize="20sp"
android:text="C1:" /> android:text="C1:" />
<TextView <TextView
android:id="@+id/tv_c1" android:id="@+id/tv_c1"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="0.8"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:textColor="#FFA500" android:textColor="#FFA500"
@ -163,7 +167,6 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:id="@+id/ll_c2"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -172,18 +175,20 @@
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/tv_c2_desc"
android:layout_height="wrap_content" android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:layout_weight="1"
android:layout_marginStart="30dp" android:gravity="center|right"
android:textSize="20sp" android:text="C2:"
android:text="C2:" /> android:textSize="20sp" />
<TextView <TextView
android:id="@+id/tv_c2" android:id="@+id/tv_c2"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
@ -192,7 +197,6 @@
android:text="0" /> android:text="0" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/ll_c3"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -201,19 +205,21 @@
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/tv_c3_desc"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center|right"
android:layout_marginStart="20dp" android:layout_weight="1"
android:textSize="20sp" android:textSize="20sp"
android:text="C3:" /> android:text="C3:" />
<TextView <TextView
android:id="@+id/tv_c3" android:id="@+id/tv_c3"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:textColor="#FFA500" android:textColor="#FFA500"
@ -222,7 +228,6 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/ll_lowLisk"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -231,18 +236,21 @@
<TextView <TextView
android:layout_width="wrap_content" android:id="@+id/tv_lowLisk_desc"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center|right"
android:layout_weight="1.2"
android:textSize="20sp" android:textSize="20sp"
android:text="低风险:" /> android:text="低风险:" />
<TextView <TextView
android:id="@+id/tv_lowLisk" android:id="@+id/tv_lowLisk"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="0.8"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:textColor="#FFA500" android:textColor="#FFA500"

@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_sqxgdlr3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.activity.WorkRiskListHuiBaoActivity">
<include layout="@layout/layout_base"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center|left">
<TextView
android:id="@+id/tv_xydj"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="right|center_vertical"
android:textSize="20sp"
android:textStyle="bold"
android:text="汇报内容:" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="300px"
android:layout_margin="10dp"
android:gravity="center">
<EditText
android:id="@+id/et_ms"
style="@style/editTextTheme"
android:layout_width="match_parent"
android:layout_height="300px"
android:gravity="top|left"
android:inputType="textMultiLine"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="90dp"
android:layout_margin="10dp"
android:background="@drawable/radius"
android:orientation="vertical">
<CheckBox
android:id="@+id/cb_crop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:visibility="gone"
android:text="是否裁剪图片"
android:textColor="#53575e"
android:textSize="14sp" />
<CheckBox
android:id="@+id/cb_compress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:visibility="gone"
android:checked="true"
android:text="是否压缩图片"
android:textColor="#53575e"
android:textSize="14sp" />
<CheckBox
android:id="@+id/cb_editor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:gravity="center_vertical"
android:text="是否开启图片编辑"
android:visibility="gone"
android:textColor="#53575e"
android:textSize="14sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:overScrollMode="never" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
Loading…
Cancel
Save