调整一处英文UI下字数过长问题

This commit is contained in:
zlzw 2023-08-15 14:00:36 +08:00
parent 7226add482
commit 41c8783b53
2 changed files with 12 additions and 3 deletions

View File

@ -17,6 +17,7 @@ import com.yunbao.common.http.base.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.interfaces.OnItemClickListener; import com.yunbao.common.interfaces.OnItemClickListener;
import com.yunbao.common.utils.DialogUitl; import com.yunbao.common.utils.DialogUitl;
import com.yunbao.common.views.weight.MarqueeTextView;
import com.yunbao.live.R; import com.yunbao.live.R;
import com.yunbao.live.dialog.LiveUserAnchorMailBoxWebInfoPopDialog; import com.yunbao.live.dialog.LiveUserAnchorMailBoxWebInfoPopDialog;
@ -71,7 +72,7 @@ public class LiveUserAnchorMailBoxAdapter extends RecyclerView.Adapter<LiveUserA
public class MailBoxViewHolder extends RecyclerView.ViewHolder { public class MailBoxViewHolder extends RecyclerView.ViewHolder {
TextView topText; TextView topText;
TextView userName; TextView userName;
TextView tipText; MarqueeTextView tipText;
View del; View del;
public MailBoxViewHolder(@NonNull View itemView) { public MailBoxViewHolder(@NonNull View itemView) {

View File

@ -51,16 +51,24 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/full_names" /> tools:text="@tools:sample/full_names" />
<TextView <com.yunbao.common.views.weight.MarqueeTextView
android:id="@+id/tip" android:id="@+id/tip"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="40dp" android:layout_marginStart="40dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="24dp" android:layout_marginBottom="24dp"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="start" android:gravity="start"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="14sp" android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/textView13"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
tools:text="「主播昵稱」有更多話對你說" /> tools:text="「主播昵稱」有更多話對你說" />