add 名片在列表上的表现
This commit is contained in:
@@ -3,6 +3,7 @@ package com.yunbao.share.adapters;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -75,6 +76,10 @@ public class InternalShareAdapter extends RecyclerView.Adapter<InternalShareAdap
|
||||
} else {
|
||||
radioButton.setChecked(false);
|
||||
}
|
||||
radioButton.setOnClickListener(view -> {
|
||||
selectPosition = position;
|
||||
notifyDataSetChanged();
|
||||
});
|
||||
itemView.setOnClickListener(view -> {
|
||||
selectPosition = position;
|
||||
notifyDataSetChanged();
|
||||
|
||||
@@ -36,7 +36,8 @@ public class Internal extends AbsShareInterface {
|
||||
}
|
||||
}).showDialog();
|
||||
}
|
||||
void sendMessage(ShareBean builder){
|
||||
|
||||
void sendMessage(ShareBean builder) {
|
||||
MessageChatCardContent.sendMessage(Conversation.ConversationType.PRIVATE, builder.getUid(),
|
||||
MessageChatCardContent.obtain(
|
||||
builder.getCover(),
|
||||
@@ -44,7 +45,7 @@ public class Internal extends AbsShareInterface {
|
||||
builder.getAnchorAvatar(),
|
||||
builder.getAnchorName(),
|
||||
builder.getAnchorId(),
|
||||
"1",
|
||||
builder.getShareType() + "",
|
||||
builder.getAnchorId()
|
||||
),
|
||||
new OnSendMessageListener<Object>() {
|
||||
|
||||
@@ -27,8 +27,8 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SharePopDialog extends AbsDialogPopupWindow {
|
||||
public static final int TYPE_LIVE = 0;
|
||||
public static final int TYPE_DYNAMIC = 1;
|
||||
public static final int TYPE_LIVE = 1;
|
||||
public static final int TYPE_DYNAMIC = 0;
|
||||
private ShareAppAdapter adapter;
|
||||
private RecyclerView list;
|
||||
private RoundedImageView avatar;
|
||||
|
||||
Reference in New Issue
Block a user