修复BUG
This commit is contained in:
parent
9aa8b22d99
commit
ac7a491f57
@ -87,7 +87,12 @@ public class HomeRankListAdapter extends RecyclerView.Adapter<HomeRankListAdapte
|
||||
|
||||
private void setData(HomeRankBean bean, int position) {
|
||||
rank.setText(position + 4 + "");
|
||||
user_name.setText(bean.getUserNicename());
|
||||
|
||||
if (bean.getUserNicename().length() > 5) {
|
||||
user_name.setText(bean.getUserNicename().substring(0, 4) + "...");
|
||||
} else {
|
||||
user_name.setText(bean.getUserNicename());
|
||||
}
|
||||
level.setText("Lv." + bean.getLevel());
|
||||
money.setText(bean.getMoney());
|
||||
|
||||
|
@ -140,10 +140,11 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:src="@mipmap/auth_status" />
|
||||
android:src="@mipmap/auth_status"
|
||||
android:visibility="gone" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginLeft="5dp">
|
||||
|
||||
@ -177,7 +178,7 @@
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginLeft="5dp">
|
||||
|
||||
|
@ -77,6 +77,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="微信红红火火恍恍惚惚哈哈哈"
|
||||
android:textColor="#333333"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:layout_weight="0.8"
|
||||
android:singleLine="true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user