[6.7.0]UI改版
This commit is contained in:
@@ -183,8 +183,6 @@ class MsgBoxTabAdapter(private val activity: Activity) :
|
||||
//时间显示
|
||||
holder.tvFmTime.text =
|
||||
"时间:${fmInfoMsg.policyTime?.let { it1 -> TimeUtils.millis2String(it1) }}"
|
||||
holder.tvFmTime.text =
|
||||
fmInfoMsg.policyTime?.let { it1 -> TimeUtils.millis2String(it1,getHourMinFormat()) }
|
||||
//建议操作
|
||||
if(fmInfoMsg.fmInfoList.isNullOrEmpty()){
|
||||
//建议操作暂无
|
||||
@@ -361,8 +359,6 @@ class MsgBoxTabAdapter(private val activity: Activity) :
|
||||
|
||||
holder.tvReportTime.text =
|
||||
"时间:${TimeUtils.millis2String(it[position].timestamp)}"
|
||||
holder.tvReportShowTime.text =
|
||||
TimeUtils.millis2String(it[position].timestamp, getHourMinFormat())
|
||||
var resultStr = "类型:"
|
||||
for (result in reportEntity.resultList) {
|
||||
resultStr =
|
||||
@@ -612,7 +608,6 @@ class MsgBoxTabAdapter(private val activity: Activity) :
|
||||
class FmInfoHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
|
||||
var ivFmImage: ImageView = itemView.findViewById(R.id.ivFmImage) //故障级别图标
|
||||
var tvFmTitle: TextView = itemView.findViewById(R.id.tvFmTitle) //标题展示故障策略
|
||||
var tvFmShowTime: TextView = itemView.findViewById(R.id.tvFmShowTime) //展示时间
|
||||
var tvFmShowStatus: TextView = itemView.findViewById(R.id.tvFmShowStatus) //折叠状态
|
||||
var tvFmTime: TextView = itemView.findViewById(R.id.tvFmTime) //发生时间
|
||||
var tvFmAction: TextView = itemView.findViewById(R.id.tvFmAction) //建议操作
|
||||
@@ -630,7 +625,6 @@ class MsgBoxTabAdapter(private val activity: Activity) :
|
||||
var tvReportReason: TextView = itemView.findViewById(R.id.tvReportReason)
|
||||
var tvReportSrc: TextView = itemView.findViewById(R.id.tvReportSrc)
|
||||
var tvReportAction: TextView = itemView.findViewById(R.id.tvReportAction)
|
||||
var tvReportShowTime: TextView = itemView.findViewById(R.id.tvReportShowTime)
|
||||
var tvReportShowStatus: TextView = itemView.findViewById(R.id.tvReportShowStatus)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mogo.eagle.core.widget.RoundConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layoutBadCase"
|
||||
android:layout_width="@dimen/dp_773"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_180"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_gravity="center_horizontal"
|
||||
|
||||
@@ -22,34 +22,26 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/ivFmImage"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivFmImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowTime"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowStatus"
|
||||
android:layout_marginStart="@dimen/dp_30"
|
||||
android:textSize="@dimen/sp_38"
|
||||
android:textColor="@color/white"
|
||||
/>
|
||||
|
||||
<!--展示时间-->
|
||||
<TextView
|
||||
android:id="@+id/tvFmShowTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/tvFmTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvFmTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textColor="#999999"
|
||||
android:textSize="@dimen/sp_32"
|
||||
/>
|
||||
|
||||
<!--折叠状态-->
|
||||
<TextView
|
||||
android:id="@+id/tvFmShowStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/tvFmTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvFmTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:text="@string/fm_open"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#2EACFF"
|
||||
android:paddingTop="@dimen/dp_20"
|
||||
android:paddingBottom="@dimen/dp_20"
|
||||
android:paddingStart="@dimen/dp_30"
|
||||
/>
|
||||
|
||||
<!--发生时间-->
|
||||
@@ -59,7 +51,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFmTitle"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvFmTitle"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvFmShowStatus"
|
||||
android:textColor="#CCCCCC"
|
||||
android:textSize="@dimen/sp_32"
|
||||
/>
|
||||
@@ -71,7 +63,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFmTime"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvFmTime"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvFmShowStatus"
|
||||
android:textColor="#CCCCCC"
|
||||
android:textSize="@dimen/sp_32"
|
||||
/>
|
||||
@@ -83,7 +75,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFmAction"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvFmAction"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvFmShowStatus"
|
||||
android:textColor="#CCCCCC"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:visibility="gone"
|
||||
@@ -96,7 +88,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFmFault"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvFmFault"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvFmShowStatus"
|
||||
android:textColor="#CCCCCC"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:visibility="gone"
|
||||
@@ -109,7 +101,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFmReason"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvFmReason"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvFmShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvFmShowStatus"
|
||||
android:paddingBottom="@dimen/dp_30"
|
||||
android:textColor="#CCCCCC"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:visibility="gone"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/ivReportImage"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivReportImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowTime"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowStatus"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_38"
|
||||
android:layout_marginStart="@dimen/dp_30"
|
||||
@@ -32,7 +32,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvReportLevel"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvReportLevel"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvReportShowStatus"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#CCCCCC"
|
||||
/>
|
||||
@@ -43,7 +43,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvReportTime"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvReportTime"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvReportShowStatus"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#CCCCCC"
|
||||
/>
|
||||
@@ -54,7 +54,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvReportType"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvReportType"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvReportShowStatus"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#CCCCCC"
|
||||
android:visibility="gone"
|
||||
@@ -66,7 +66,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvReportReason"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvReportReason"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvReportShowStatus"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#CCCCCC"
|
||||
android:visibility="gone"
|
||||
@@ -78,32 +78,26 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvReportSrc"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvReportSrc"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvReportShowTime"
|
||||
app:layout_constraintRight_toRightOf="@id/tvReportShowStatus"
|
||||
android:paddingBottom="@dimen/dp_30"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#CCCCCC"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvReportShowTime"
|
||||
android:id="@+id/tvReportShowStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/tvReportLevel"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvReportLevel"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textColor="#999999"
|
||||
android:textSize="@dimen/sp_32"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvReportShowStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:text="@string/report_open"
|
||||
android:textSize="@dimen/sp_32"
|
||||
android:textColor="#2EACFF"
|
||||
android:paddingTop="@dimen/dp_20"
|
||||
android:paddingBottom="@dimen/dp_20"
|
||||
android:paddingLeft="@dimen/dp_30"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user