Commit aa8e4ec7 by 霍志良

feat:只有其他选项的时候,展示。其他文字顶上去

parent 047cfad7
......@@ -1075,9 +1075,13 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
isOthers=event.getOthersState().getOthersSelect();
inputPanel.onlyShowTextEnd();
}
question_multiple.setText(event.getStrSelected());
if (event.getStrSelected().contains("其他")){
question_multiple.setText(event.getStrSelected());
}
}else{
question_multiple.setText(event.getStrSelected());
if (event.getStrSelected().contains("其他")){
question_multiple.setText(event.getStrSelected());
}
}
}else if (event.isFromInputPanel()){
for (int i=0;i<answersItems.size();i++){
......@@ -1137,6 +1141,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
inputPanel.setInputContent("");
question_multiple.setText("");
question_multiple.setVisibility(View.GONE);
inputPanel.onlyShowTextEnd();
answerLingxiQuestion(multipleAnswerBean.getExamId(),multipleAnswerBean.getQuestionPaperId(),
multipleAnswerBean.getUid(),multipleAnswerBean.getQuestionId(),multipleAnswerBean.getAnswersItems(),
......
......@@ -590,22 +590,24 @@
android:textStyle="bold" />
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/im_sp_14"
android:textColor="@color/im_color_242424"
android:layout_gravity="bottom"
android:id="@+id/question_multiple"
tools:text="已选:#工作压力 #生活压力#其他"
android:layout_marginStart="@dimen/platform_dp_12"
android:layout_marginEnd="@dimen/platform_dp_12"
android:layout_marginBottom="@dimen/platform_dp_8"
>
</TextView>
</FrameLayout>
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/im_sp_14"
android:maxHeight="@dimen/platform_dp_20"
android:textColor="@color/im_color_242424"
android:layout_gravity="bottom"
android:maxLines="3"
android:id="@+id/question_multiple"
tools:text="已选:#工作压力 #生活压力#其他"
android:layout_marginStart="@dimen/platform_dp_12"
android:layout_marginEnd="@dimen/platform_dp_12"
android:layout_marginBottom="@dimen/platform_dp_8"
>
</TextView>
<FrameLayout
android:id="@+id/fl_question_content"
android:layout_width="match_parent"
......
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