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