初版定稿
This commit is contained in:
Binary file not shown.
@@ -102,6 +102,8 @@ public class TUIConversationFragment extends Fragment {
|
||||
private void initView() {
|
||||
|
||||
mConversationLayout = mBaseView.findViewById(R.id.conversation_layout);
|
||||
View searchHeaderView = LayoutInflater.from(getContext()).inflate(R.layout.convesation_list_header, null);
|
||||
// mConversationLayout.addView(searchHeaderView,0);
|
||||
TUIConversationConfigClassic.setAvatarCornerRadius(ScreenUtil.dip2px(100));//头像圆形
|
||||
presenter = new ConversationPresenter();
|
||||
presenter.setConversationListener();
|
||||
@@ -109,9 +111,11 @@ public class TUIConversationFragment extends Fragment {
|
||||
presenter.setConversationGroupType(ConversationGroupBean.CONVERSATION_GROUP_TYPE_DEFAULT);
|
||||
mConversationLayout.setPresenter(presenter);
|
||||
mConversationLayout.initDefault();
|
||||
/*assert mConversationLayout.getConversationList().getAdapter() != null;*/
|
||||
|
||||
// mConversationLayout.getConversationList().getAdapter().setSearchView(searchHeaderView);
|
||||
assert mConversationLayout.getConversationList().getAdapter() != null;
|
||||
View searchHeaderView = LayoutInflater.from(getContext()).inflate(R.layout.convesation_list_header, null);
|
||||
mConversationLayout.getConversationList().getAdapter().setSearchView(searchHeaderView);
|
||||
mConversationLayout.getConversationList().getAdapter().setSearchView(searchHeaderView); // 添加为固定头部
|
||||
|
||||
// mConversationLayout.getConversationList().getAdapter().setSearchView( LayoutInflater.from(getContext()).inflate(R.layout.convesation_list_header, null));
|
||||
mConversationLayout.getConversationList().setOnConversationAdapterListener(new OnConversationAdapterListener() {
|
||||
@@ -123,7 +127,6 @@ public class TUIConversationFragment extends Fragment {
|
||||
} else if (view.getId()==R.id.rl_system) {
|
||||
ToastUtils.showShort("点击系统消息");
|
||||
}else {
|
||||
|
||||
if (conversationInfo.isMarkFold()) {
|
||||
mConversationLayout.clearUnreadStatusOfFoldItem();
|
||||
startFoldedConversationActivity();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_40"
|
||||
android:layout_marginTop="@dimen/dp_70"
|
||||
android:background="@color/conversation_page_bg">
|
||||
|
||||
<com.tencent.qcloud.tuikit.tuiconversation.classicui.widget.ConversationLayout
|
||||
|
||||
Reference in New Issue
Block a user