Commit 5bfd50f8 by 霍志良

feat:调整间距

parent 310747bd
package com.yidianling.im.session.viewholder; package com.yidianling.im.session.viewholder;
import android.text.SpannableString;
import android.view.View; import android.view.View;
import android.widget.TextView; import android.widget.TextView;
import com.yidianling.im.R; import com.yidianling.im.R;
import com.yidianling.im.helper.SpanUtils;
import com.yidianling.im.session.extension.CustomAttachLingxiAnswerQuestion; import com.yidianling.im.session.extension.CustomAttachLingxiAnswerQuestion;
import com.yidianling.im.session.viewholder.bean.QuestionItemBean; import com.yidianling.im.session.viewholder.bean.QuestionItemBean;
import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter; import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter;
...@@ -55,9 +57,9 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase { ...@@ -55,9 +57,9 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
} }
for (int i=0;i<itemBeans.size();i++){ for (int i=0;i<itemBeans.size();i++){
if (isContainsOther){ if (isContainsOther){
sb.append("#"+itemBeans.get(i).getName()+" "); sb.append("#"+itemBeans.get(i).getName()+" ");
}else{ }else{
sb.append("、"+itemBeans.get(i).getName()+" "); sb.append("、"+itemBeans.get(i).getName()+" ");
} }
} }
if (itemBeans.size()==1&&!itemBeans.get(0).getName().contains("其他")){ if (itemBeans.size()==1&&!itemBeans.get(0).getName().contains("其他")){
...@@ -66,10 +68,10 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase { ...@@ -66,10 +68,10 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
if (!isContainsOther){ if (!isContainsOther){
sb.replace(0,1,""); sb.replace(0,1,"");
} }
if (others==null&&others.isEmpty()){ if (others==null){
answer_question.setText(sb.toString()); answer_question.setText(sb.toString());
}else{ }else{
answer_question.setText(sb.append("\r\n").append(others).toString()); SpanUtils.with(answer_question).append(sb).append("\r\n\n").setFontSize(10).append(others).create();
} }
} }
} }
......
...@@ -1056,6 +1056,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -1056,6 +1056,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
multipleAnswerBean=event.getMultipleAnswerBean(); multipleAnswerBean=event.getMultipleAnswerBean();
multipleAnswerBean.setAnswersItems(answersItems); multipleAnswerBean.setAnswersItems(answersItems);
if (event.getRecoverInput()){ if (event.getRecoverInput()){
question_multiple.setVisibility(View.GONE);
inputPanel.onlyShowTextEnd(); inputPanel.onlyShowTextEnd();
return; return;
} }
......
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