Commit c17e8d6f by 霍志良

fix:修复灵犀问题

parent a50a6fe1
......@@ -67,7 +67,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
private String questionPaperId;
private String questionId;
private ArrayList<AnswersItem> answersItems = new ArrayList<>();
private ArrayList<String> answersItemsMap = new ArrayList<>();
private ArrayList<String> multipleAnswers=new ArrayList<>();
public MsgViewHolderLingxiWhichQuestion(BaseMultiItemFetchLoadAdapter adapter) {
......@@ -83,8 +82,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
return R.layout.im_nim_lingxi_which_question;
case "check"://请问是发生了什么事情导致的呢?(多选)
return R.layout.im_nim_lingxi_multiple_choice;
case "3"://您是先生还是女生
return R.layout.im_nim_lingxi_men_female;
default:
return R.layout.im_nim_lingxi_which_question;
}
......@@ -121,7 +118,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
questionList.get(i).setSelected(false);
if (questionList.get(i).getName().length() > 5) {
isSingleChoice = true;
break;
}
}
if (customAttachLingxiWhichQuestion.type != null) {
......@@ -138,10 +134,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
break;
}
}
UpdateFromLocalExtention();
}
private void UpdateFromLocalExtention() {
......@@ -201,12 +194,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
EventBus.getDefault().post(new MultipleSelectedEvent(null, null,
new MultipleAnswerBean(examId, questionPaperId, ImIn.INSTANCE.getUserInfo().getUid(),
questionId, answersItems,message.getFromAccount()),false));
/* for (int i=0;i<answersItems.size();i++){
answersItemsMap.add(answersItems.get(i).getName());
}
updateLocalMsg(null,answersItemsMap);*/
});
multiple_choice_title.setText(customAttachLingxiWhichQuestion.name);
adapterLingxiMultipleChoice = new AdapterLingxiMultipleChoice();
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal"
android:background="@drawable/im_custom_message_round_white_6dp_bg"
android:paddingStart="@dimen/platform_dp_12"
android:paddingEnd="@dimen/platform_dp_12"
android:paddingBottom="@dimen/platform_dp_12"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="您是先生还是女生呢?"
android:textSize="@dimen/im_text_size_17"
android:textColor="@color/im_color_242424"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:id="@+id/men_female_title"
>
</TextView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="先生"
android:textColor="@color/white"
android:gravity="center"
android:background="@drawable/im_background_18dp_1da1f2"
android:paddingTop="@dimen/platform_dp_8"
android:paddingBottom="@dimen/platform_dp_8"
app:layout_constraintTop_toBottomOf="@id/men_female_title"
android:layout_marginTop="@dimen/platform_dp_16"
app:layout_constraintStart_toStartOf="@id/men_female_title"
android:id="@+id/tv_men"
android:drawableStart="@drawable/im_male_icon"
android:paddingStart="@dimen/platform_dp_28"
android:paddingEnd="@dimen/platform_dp_28"
android:drawablePadding="@dimen/platform_dp_5"
>
</TextView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="女生"
android:textColor="@color/white"
android:gravity="center"
android:background="@drawable/im_background_18dp_1da1f2"
android:paddingTop="@dimen/platform_dp_8"
android:paddingBottom="@dimen/platform_dp_8"
app:layout_constraintStart_toEndOf="@id/tv_men"
app:layout_constraintTop_toTopOf="@id/tv_men"
app:layout_constraintBottom_toBottomOf="@id/tv_men"
android:layout_marginStart="@dimen/platform_dp_20"
android:id="@+id/tv_female"
android:drawableStart="@drawable/im_female_icon"
android:paddingStart="@dimen/platform_dp_28"
android:paddingEnd="@dimen/platform_dp_28"
android:drawablePadding="@dimen/platform_dp_5"
>
</TextView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment