Skip to content

Commit b26f855

Browse files
committed
fix 名片只显示名字
1 parent b59eaef commit b26f855

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

android/messagelist/src/main/java/cn/jiguang/imui/messages/viewholder/CardViewHolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void onBind(final MESSAGE message) {
4545
}
4646
name.setText(card.getName());
4747
cardType.setText(card.getCardType());
48-
sessionId.setText(card.getSessionId());
48+
// sessionId.setText(card.getSessionId());
4949
}
5050
layoutTop.setOnClickListener(new View.OnClickListener() {
5151
@Override

android/messagelist/src/main/res/layout/item_receive_card.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@
5151
android:id="@+id/card_name"
5252
android:layout_toRightOf="@+id/card_icon"
5353
android:layout_marginTop="@dimen/red_packet_top"
54+
android:layout_centerVertical="true"
5455
android:textSize="@dimen/red_packet_comments_size"
55-
android:text="恭喜发财,大吉大利"
5656
android:lines="1"
5757
android:ellipsize="end"
5858
android:textColor="@color/black"
5959
android:layout_width="match_parent"
6060
android:layout_height="wrap_content" />
6161
<TextView
62+
android:visibility="gone"
6263
android:id="@+id/card_id"
6364
android:layout_marginTop="3dp"
6465
android:layout_toRightOf="@+id/card_icon"
6566
android:layout_below="@+id/card_name"
66-
android:text="领取红包"
6767
android:textColor="@color/black"
6868
android:textSize="@dimen/red_packet_text_size"
6969
android:layout_width="match_parent"

android/messagelist/src/main/res/layout/item_send_card.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
android:id="@+id/card_name"
6666
android:layout_toRightOf="@+id/card_icon"
6767
android:layout_marginTop="@dimen/red_packet_top"
68+
android:layout_centerVertical="true"
6869
android:textSize="@dimen/red_packet_comments_size"
6970
android:lines="1"
7071
android:ellipsize="end"
71-
android:text="恭喜发财,大吉大利"
7272
android:textColor="@color/black"
7373
android:layout_width="match_parent"
7474
android:layout_height="wrap_content" />
@@ -77,8 +77,8 @@
7777
android:layout_marginTop="6dp"
7878
android:layout_toRightOf="@+id/card_icon"
7979
android:layout_below="@+id/card_name"
80-
android:text="领取红包"
8180
android:textColor="@color/black"
81+
android:visibility="gone"
8282
android:textSize="@dimen/red_packet_text_size"
8383
android:layout_width="match_parent"
8484
android:layout_height="wrap_content" />

android/src/main/java/cn/jiguang/imui/messagelist/ReactMsgListManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import com.scwang.smartrefresh.header.WaterDropHeader;
4646
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
4747
import com.scwang.smartrefresh.layout.api.RefreshLayout;
48-
import com.scwang.smartrefresh.layout.header.BezierRadarHeader;
4948
import com.scwang.smartrefresh.layout.header.ClassicsHeader;
5049
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
5150

0 commit comments

Comments
 (0)