UI走查后修改UI
This commit is contained in:
@@ -89,7 +89,7 @@ public class NoticeBannerView extends ConstraintLayout {
|
||||
noticeBannerCheck.setOnClickListener(v -> {
|
||||
mNoticeTrafficDialog = new NoticeTrafficDialog(mContext, mPushData);
|
||||
mNoticeTrafficDialog.show();
|
||||
// WarningFloat.dismiss(WaringConst.MODULE_NAME);
|
||||
WarningFloat.dismiss(WaringConst.MODULE_NAME);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
mRecyclerView.setLayoutManager(layoutManager);
|
||||
layoutManager.setOrientation(GridLayoutManager.VERTICAL);
|
||||
NoticeTrafficInfoGridItemDivider gridLayoutDivider = new NoticeTrafficInfoGridItemDivider(1,
|
||||
(mContext.getResources().getColor(R.color.notice_check_dialog_bg_color)));
|
||||
(mContext.getResources().getColor(R.color.notice_traffic_line)));
|
||||
mRecyclerView.addItemDecoration(gridLayoutDivider);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -383,21 +383,11 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
laiYuan.setValue(info.getUploadType());
|
||||
dataArrayList.add(laiYuan);
|
||||
|
||||
NoticeValue zeRen = new NoticeValue();
|
||||
zeRen.setKey("责 任 方:");
|
||||
zeRen.setValue("--");
|
||||
dataArrayList.add(zeRen);
|
||||
|
||||
NoticeValue cTime = new NoticeValue();
|
||||
cTime.setKey("事故时间:");
|
||||
cTime.setValue(DateTimeUtils.getTimeText(info.getDataCreateTime(), DateTimeUtils.MM_Yue_dd_Ri_HH_mm));
|
||||
dataArrayList.add(cTime);
|
||||
|
||||
NoticeValue p = new NoticeValue();
|
||||
p.setKey("责 任 人:");
|
||||
p.setValue("--");
|
||||
dataArrayList.add(p);
|
||||
|
||||
NoticeValue hTime = new NoticeValue();
|
||||
hTime.setKey("处理时间:");
|
||||
hTime.setValue(DateTimeUtils.getTimeText(info.getDataHandleTime(), DateTimeUtils.MM_Yue_dd_Ri_HH_mm));
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="@dimen/notice_traffic_back__width"
|
||||
android:layout_height="@dimen/notice_traffic_back__height"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/notice_dialog_check_background">
|
||||
|
||||
<ImageView
|
||||
@@ -67,8 +68,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notice_connect"
|
||||
android:layout_width="@dimen/dp_310"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:layout_width="@dimen/dp_200"
|
||||
android:layout_height="@dimen/dp_65"
|
||||
android:layout_marginBottom="@dimen/dp_40"
|
||||
android:background="@drawable/notice_connect"
|
||||
android:gravity="center"
|
||||
@@ -84,9 +85,9 @@
|
||||
android:id="@+id/traffic_info_recyclerView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="@dimen/dp_70"
|
||||
android:layout_marginLeft="@dimen/dp_80"
|
||||
android:layout_marginTop="@dimen/dp_38"
|
||||
android:layout_marginRight="@dimen/dp_80"
|
||||
android:layout_marginRight="@dimen/dp_70"
|
||||
android:layout_marginBottom="@dimen/dp_40"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/traffic_top_line"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="@dimen/dp_575"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="4px"
|
||||
android:background="@color/notice_banner_blue">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -18,7 +20,7 @@
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:gravity="left|center"
|
||||
android:text="事故来源:"
|
||||
android:textColor="#FFF"
|
||||
android:textColor="#CCFFFFFF"
|
||||
android:textSize="@dimen/dp_36" />
|
||||
|
||||
<TextView
|
||||
@@ -28,7 +30,7 @@
|
||||
android:gravity="left|center"
|
||||
android:maxLines="2"
|
||||
android:text="测试数据"
|
||||
android:textColor="#FFF"
|
||||
android:textColor="#CCFFFFFF"
|
||||
android:textSize="@dimen/dp_36"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
<color name="notice_text_blue">#1F9BFE</color>
|
||||
<color name="notice_banner_blue">#5A8EFD</color>
|
||||
<color name="notice_check_dialog_bg_color">#E63B4577</color>
|
||||
<color name="notice_traffic_line">#D5D5D4</color>
|
||||
<color name="notice_traffic_line">#CCD5D5D4</color>
|
||||
<color name="notice_dialog_back">#3B4577</color>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user