优化[社区评论排版]

修复[官方通知-“點擊查看”-英文翻譯]
This commit is contained in:
Martin 2024-08-05 14:27:52 +08:00
parent 27c2261fac
commit d61d142ec1
3 changed files with 61 additions and 65 deletions

View File

@ -11,94 +11,89 @@
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_marginTop="10dp"
android:orientation="horizontal"> android:orientation="vertical">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/avatar"
android:layout_width="30dp"
android:layout_height="30dp"
android:scaleType="centerCrop"
android:src="@mipmap/icon_data_empty"
app:riv_oval="true" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_marginLeft="10dp"
android:layout_marginTop="7dp" <com.makeramen.roundedimageview.RoundedImageView
android:gravity="center_vertical" android:id="@+id/avatar"
android:orientation="vertical"> android:layout_width="30dp"
android:layout_height="30dp"
android:scaleType="centerCrop"
android:src="@mipmap/icon_data_empty"
app:riv_oval="true" />
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
android:layout_weight="1"
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:text="栗子栗子🌰zzz" android:text="栗子栗子🌰zzz"
android:textColor="#777777" android:textColor="#777777"
android:textSize="12dp" /> android:textSize="12dp" />
<TextView <TextView
android:id="@+id/content" android:id="@+id/author"
android:layout_width="45dp"
android:layout_height="17dp"
android:layout_marginLeft="10dp"
android:background="@drawable/bg_main_com_author"
android:gravity="center"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:text="@string/active_author"
android:textColor="@color/white"
android:textSize="10dp"
android:visibility="gone" />
<TextView
android:id="@+id/del"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="5dp" android:padding="10dp"
android:text="栗子栗子🌰zzz" android:text="@string/delete"
android:textColor="#777777"
android:textSize="11dp"
android:visibility="gone" />
<TextView
android:id="@+id/replyTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="9dp"
android:text="@string/dialog_message_chat_notify_btn"
android:textColor="#777777"
android:textSize="11dp" />
<TextView
android:id="@+id/report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:padding="9dp"
android:text="@string/chat_report"
android:textColor="#333333" android:textColor="#333333"
android:textSize="12dp" /> android:textSize="11dp"
android:textStyle="bold" />
</LinearLayout> </LinearLayout>
<TextView <TextView
android:id="@+id/author" android:id="@+id/content"
android:layout_width="45dp"
android:layout_height="17dp"
android:layout_marginLeft="10dp"
android:background="@drawable/bg_main_com_author"
android:gravity="center"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:text="@string/active_author"
android:textColor="@color/white"
android:textSize="10dp"
android:visibility="gone" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/del"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="10dp" android:layout_marginEnd="15dp"
android:text="@string/delete" android:layout_marginStart="40dp"
android:textColor="#777777" android:layout_marginTop="5dp"
android:textSize="11dp" android:text="栗子栗子🌰栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子栗子zzz"
android:visibility="gone" />
<TextView
android:id="@+id/replyTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="9dp"
android:text="@string/dialog_message_chat_notify_btn"
android:textColor="#777777"
android:textSize="11dp" />
<TextView
android:id="@+id/report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:padding="9dp"
android:text="@string/chat_report"
android:textColor="#333333" android:textColor="#333333"
android:textSize="11dp" android:textSize="12dp" />
android:textStyle="bold" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/replyLayout" android:id="@+id/replyLayout"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -83,6 +83,7 @@ public class LiveUserAnchorMsgPopDialog extends AbsDialogFragment {
mIndicator = (MagicIndicator) findViewById(R.id.indicator); mIndicator = (MagicIndicator) findViewById(R.id.indicator);
viewPager = (ViewPager2) findViewById(R.id.viewPager); viewPager = (ViewPager2) findViewById(R.id.viewPager);
titleCount= (TextView) findViewById(R.id.titleCount); titleCount= (TextView) findViewById(R.id.titleCount);
titleCount.setText(getResources().getString(R.string.message_chat_msg_all_an_a)+"(0)");
fragmentList = new ArrayList<>(); fragmentList = new ArrayList<>();
fragmentList.add(new MainMessageChatListFragment(AppManager.getInstance().getLiveActivity())); fragmentList.add(new MainMessageChatListFragment(AppManager.getInstance().getLiveActivity()));
viewPager.setAdapter(new FragmentStateAdapter((FragmentActivity) AppManager.getInstance().getLiveActivity()) { viewPager.setAdapter(new FragmentStateAdapter((FragmentActivity) AppManager.getInstance().getLiveActivity()) {

View File

@ -83,7 +83,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="點擊查看" android:text="@string/click_to_view"
android:textColor="#ffaaaaaa" android:textColor="#ffaaaaaa"
android:textSize="12sp" /> android:textSize="12sp" />