通知公告页面修改

This commit is contained in:
adam 2022-05-31 09:58:13 +08:00
parent 6b8f2f075d
commit 3f80dfe096
4 changed files with 29 additions and 23 deletions

View File

@ -1,6 +1,5 @@
package com.tenlionsoft.oamodule.activity.notify;
import android.graphics.Color;
import android.net.http.SslError;
import android.os.Build;
import android.text.TextUtils;
@ -142,15 +141,12 @@ public class NoticeDetailActivity extends BaseActivity {
switch (bean.getNoticeLevel()) {
case "1":
mTvLevel.setText("紧急");
mTvLevel.setTextColor(Color.RED);
break;
case "2":
mTvLevel.setText("一般");
mTvLevel.setTextColor(Color.GREEN);
break;
case "3":
mTvLevel.setText("普通");
mTvLevel.setTextColor(Color.BLACK);
break;
}

View File

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray_bg"
android:background="@color/gray_f2"
android:orientation="vertical"
android:scrollbars="none"
tools:context=".activity.notify.NoticeDetailActivity">
@ -42,7 +42,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:textSize="@dimen/text_12"
android:gravity="center_vertical"
android:textSize="@dimen/text_14"
tools:text="发布时间:2022-22-22 12:12:12" />
<LinearLayout
@ -56,8 +57,8 @@
android:orientation="horizontal">
<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_width="14dp"
android:layout_height="14dp"
android:src="@drawable/ic_read_num_hint" />
<TextView
@ -66,7 +67,7 @@
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:gravity="center"
android:textSize="@dimen/text_12"
android:textSize="@dimen/text_14"
tools:text="129" />
</LinearLayout>
@ -76,6 +77,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:gravity="center"
android:orientation="horizontal">
@ -84,7 +86,8 @@
android:id="@+id/tv_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_12"
android:gravity="center_vertical"
android:textSize="@dimen/text_14"
tools:text="类型" />
<TextView
@ -92,7 +95,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textSize="@dimen/text_12"
android:gravity="center_vertical"
android:textSize="@dimen/text_14"
tools:text="等级" />
<TextView
@ -100,9 +104,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:text="已读"
android:textColor="@color/red_ff"
android:textSize="@dimen/text_12" />
android:textSize="@dimen/text_14" />
</LinearLayout>
</LinearLayout>

View File

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray_bg"
android:background="@color/gray_f8"
android:orientation="vertical"
tools:context=".activity.meeting.MeetingCenterActivity">
@ -32,7 +32,7 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:clickable="true"
android:drawableLeft="@drawable/ic_arrow_cir"
android:drawableLeft="@drawable/ic_date_title_icon"
android:focusable="true"
android:gravity="center"
android:hint="开始日期"
@ -78,8 +78,8 @@
android:id="@+id/rlv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="@color/white"
tools:listitem="@layout/item_notice" />
</com.scwang.smart.refresh.layout.SmartRefreshLayout>

View File

@ -3,8 +3,11 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:orientation="vertical"
android:padding="5dp">
android:paddingLeft="10dp"
android:paddingRight="10dp">
<TextView
android:id="@+id/tv_title"
@ -19,7 +22,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginTop="7dp"
android:orientation="horizontal">
<TextView
@ -27,7 +30,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".3"
android:textSize="@dimen/text_12"
android:textColor="#8e8e8e"
android:textSize="@dimen/text_14"
tools:text="类型" />
<TextView
@ -37,7 +41,8 @@
android:layout_marginRight="10dp"
android:layout_weight=".5"
android:gravity="right"
android:textSize="@dimen/text_12"
android:textColor="#8e8e8e"
android:textSize="@dimen/text_14"
tools:text="2022-12-12 12:12:12" />
<LinearLayout
@ -47,8 +52,8 @@
android:orientation="horizontal">
<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_width="14dp"
android:layout_height="14dp"
android:src="@drawable/ic_read_num_hint" />
<TextView
@ -56,6 +61,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:textColor="#8e8e8e"
android:textSize="@dimen/text_12"
tools:text="999" />
</LinearLayout>