调整女神说6字改回4字

This commit is contained in:
2023-04-06 14:29:12 +08:00
parent 028f2794bf
commit 36410ddcaa
11 changed files with 17 additions and 15 deletions

View File

@@ -76,7 +76,7 @@ public class LiveAnchorSayItemsAdapter extends RecyclerView.Adapter<LiveAnchorSa
}
public void setData(String text, int position) {
textView.setText("已输入的内容\n已输入的内容\n已输入的");
textView.setText("已输入的\n内容已输\n入的内容\n已输入的");
ImgLoader.display(mContext, text, icon);
if (position == click) {
itemView.setBackgroundResource(R.drawable.bg_anchor_say_select);

View File

@@ -130,7 +130,7 @@ public class LiveAnchorSayPopDialog extends AbsDialogPopupWindow {
}
public String getText(String content) {
int t = 6;
int t = 4;
float len = (float) content.length() / t;
StringBuilder sb = new StringBuilder();
sb.append("\n");

View File

@@ -4443,7 +4443,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
public String getText(String content) {
int t = 6;
int t = 4;
float len = (float) content.length() / t;
StringBuilder sb = new StringBuilder();
sb.append("\n");

View File

@@ -8,8 +8,8 @@
<include
android:id="@+id/anchor_say"
layout="@layout/sim_live_room_anchor_say"
android:layout_width="77dp"
android:layout_height="110dp"
android:layout_width="67dp"
android:layout_height="88dp"
android:layout_marginStart="16dp"
android:visibility="invisible"
app:layout_constraintStart_toStartOf="parent"

View File

@@ -11,8 +11,8 @@
<include
layout="@layout/sim_live_room_anchor_say"
android:layout_width="83dp"
android:layout_height="110dp"
android:layout_width="67dp"
android:layout_height="88dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

View File

@@ -2,8 +2,8 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="77dp"
android:layout_height="110dp">
android:layout_width="67dp"
android:layout_height="88dp">
<ImageView
android:id="@+id/anchor_say_icon"
@@ -36,7 +36,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/anchor_say_icon"
tools:text="已输入的内容\n已输入的内容\n已输入的" />
tools:text="已输入的\n内容已输\n入的内容\n已输入的" />
<ImageView
android:id="@+id/anchor_say_hide"

View File

@@ -1295,8 +1295,8 @@
<include
android:id="@+id/anchor_say_layout"
layout="@layout/sim_live_room_anchor_say"
android:layout_width="77dp"
android:layout_height="110dp"
android:layout_width="67dp"
android:layout_height="88dp"
android:layout_alignBottom="@+id/live_video"
android:layout_marginStart="14dp"
android:visibility="invisible"