通知公告页面修改

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

View File

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

View File

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

View File

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