Browse Source

修复弹出框报错bug;
消息详情页面优化

zengjiebin 7 years ago
parent
commit
7a61728ba4

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/MessageCenterDetailActivity.java

@@ -41,7 +41,7 @@ public class MessageCenterDetailActivity extends AppCompatActivity {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_messagesystem);
         ButterKnife.bind(this);
-        tvBaseTitle.setText("消息中心");
+        tvBaseTitle.setText("消息详情");
         int id = getIntent().getIntExtra("id", -1);
         loadData(id);
     }

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/view/fragment/FgtSmallSheep.java

@@ -1408,7 +1408,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
     private void showPDialog() {
         boolean isShowDialog = DataUtil.getAsBoolean("isShowDialog", true);
         if (isShowDialog && !NotificationsUtils.isNotificationEnabled(SheepApp.getInstance())) {//没有开启通知权限
-            AlertDialog.Builder builder = new AlertDialog.Builder(SheepApp.getInstance());
+            AlertDialog.Builder builder = new AlertDialog.Builder(activity);
             builder.setTitle("提示");
             builder.setMessage("是否开启推送?");
             builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {

+ 12 - 5
app/src/main/res/layout/activity_messagesystem.xml

@@ -2,6 +2,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@color/white"
     android:orientation="vertical">
 
     <include layout="@layout/title" />
@@ -10,18 +11,24 @@
         android:id="@+id/tv_title"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_marginStart="16dp"
-        android:layout_marginTop="10dp"
-        android:textColor="#ff333333"
+        android:layout_margin="16dp"
+        android:text="xxxxx任务上线"
+        android:textColor="#333333"
         android:textSize="18sp" />
 
+    <View
+        android:layout_width="match_parent"
+        android:layout_height="1dp"
+        android:background="#f5f5f5" />
+
     <TextView
         android:id="@+id/tv_content"
         android:layout_width="match_parent"
         android:layout_height="48dp"
         android:layout_marginEnd="16dp"
         android:layout_marginStart="16dp"
-        android:layout_marginTop="15dp"
-        android:textColor="#ff666666"
+        android:layout_marginTop="20dp"
+        android:text="x  x任务上线,限量1000分,任务奖励1元,赶紧去领取吧~!xx任务上线,限量1000分,任务奖励1元,赶紧去领取吧~!"
+        android:textColor="#666666"
         android:textSize="13sp" />
 </LinearLayout>