Commit 508b1359 by 霍志良

feat:UI修改

parent c0c1c196
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.03", "m-fm" : "0.0.30.03",
"m-user" : "0.0.61.37", "m-user" : "0.0.61.37",
"m-home" : "0.0.22.67", "m-home" : "0.0.22.67",
"m-im" : "0.0.19.32", "m-im" : "0.0.19.33",
"m-dynamic" : "0.0.7.24", "m-dynamic" : "0.0.7.24",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -93,7 +93,7 @@ ext { ...@@ -93,7 +93,7 @@ ext {
"m-fm" : "0.0.30.01", "m-fm" : "0.0.30.01",
"m-user" : "0.0.61.37", "m-user" : "0.0.61.37",
"m-home" : "0.0.22.67", "m-home" : "0.0.22.67",
"m-im" : "0.0.19.32", "m-im" : "0.0.19.33",
"m-dynamic" : "0.0.7.24", "m-dynamic" : "0.0.7.24",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -96,7 +96,7 @@ public class NimApplication { ...@@ -96,7 +96,7 @@ public class NimApplication {
options.shouldHandleReceipt = true; options.shouldHandleReceipt = true;
options.toolBarOptions = new YDLToolBarOptions(); options.toolBarOptions = new YDLToolBarOptions();
options.messageLeftBackground = R.drawable.im_message_receive_content_bg; options.messageLeftBackground = R.drawable.im_message_receive_content_bg;
options.messageRightBackground = R.drawable.im_message_send_content_bg; options.messageRightBackground = R.drawable.im_custom_message_round_1da1f2_6dp_bg;
return options; return options;
} }
......
...@@ -70,7 +70,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen ...@@ -70,7 +70,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
private String questionId; private String questionId;
private String singleOrMultipletype; private String singleOrMultipletype;
private ArrayList<AnswersItem> answersItems = new ArrayList<>(); private ArrayList<AnswersItem> answersItems = new ArrayList<>();
private ArrayList<String> multipleAnswers=new ArrayList<>();
Map<String, Object> mapMessageFromCustom; Map<String, Object> mapMessageFromCustom;
public MsgViewHolderLingxiWhichQuestion(BaseMultiItemFetchLoadAdapter adapter) { public MsgViewHolderLingxiWhichQuestion(BaseMultiItemFetchLoadAdapter adapter) {
super(adapter); super(adapter);
...@@ -183,19 +182,19 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen ...@@ -183,19 +182,19 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
if (mapMessage != null) { if (mapMessage != null) {
Object questionPaperId=mapMessage.get(customAttachLingxiWhichQuestion.questionPaperId); Object questionPaperId=mapMessage.get(customAttachLingxiWhichQuestion.questionPaperId);
if (questionPaperId.toString().equals("true")){
//隐藏回答的信息 if (questionPaperId != null) {
if (singleOrMultipletype.contains("radio")){ boolean b = (boolean) questionPaperId;
recycleviewWhichQuestion.setVisibility(View.GONE); if (b) {
}else{ //隐藏回答的信息
recycleviewMultipleChoice.setVisibility(View.GONE); if (singleOrMultipletype.contains("radio")){
confirm_multiple_choice.setVisibility(View.GONE); recycleviewWhichQuestion.setVisibility(View.GONE);
}else{
recycleviewMultipleChoice.setVisibility(View.GONE);
confirm_multiple_choice.setVisibility(View.GONE);
}
} }
} }
} else {
//可点击
} }
} catch (Exception e) { } catch (Exception e) {
LogUtil.e(e.getLocalizedMessage()); LogUtil.e(e.getLocalizedMessage());
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/color_c2e7ff" /> <solid android:color="@color/platform_color_1DA1F2" />
<corners <corners
android:topLeftRadius="@dimen/platform_dp_10" android:topLeftRadius="@dimen/platform_dp_10"
android:bottomRightRadius="@dimen/platform_dp_10" android:bottomRightRadius="@dimen/platform_dp_10"
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
android:maxWidth="263dp" android:maxWidth="263dp"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
tools:text="答案" tools:text="答案"
android:background="@drawable/im_custom_message_round_c2e7ff_6dp_bg" android:background="@drawable/im_custom_message_round_1da1f2_6dp_bg"
android:id="@+id/answer_question" android:id="@+id/answer_question"
android:textColor="@color/im_color_242424" android:textColor="@color/white"
android:textSize="@dimen/im_sp_14" android:textSize="@dimen/im_text_size_17"
android:paddingTop="@dimen/platform_dp_9" android:paddingTop="@dimen/platform_dp_9"
android:paddingBottom="@dimen/platform_dp_9" android:paddingBottom="@dimen/platform_dp_9"
android:paddingStart="@dimen/platform_dp_10" android:paddingStart="@dimen/platform_dp_10"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxWidth="263dp"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/im_custom_message_round_white_6dp_bg" android:background="@drawable/im_custom_message_round_white_6dp_bg"
...@@ -11,8 +10,9 @@ ...@@ -11,8 +10,9 @@
android:paddingTop="@dimen/platform_dp_12" android:paddingTop="@dimen/platform_dp_12"
> >
<TextView <TextView
android:layout_width="239dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxWidth="263dp"
android:id="@+id/multiple_choice_title" android:id="@+id/multiple_choice_title"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="263dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/im_custom_message_round_white_6dp_bg" android:background="@drawable/im_custom_message_round_white_6dp_bg"
android:paddingLeft="@dimen/platform_dp_12" android:paddingLeft="@dimen/platform_dp_12"
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
<TextView <TextView
android:id="@+id/which_question_title" android:id="@+id/which_question_title"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxWidth="263dp"
android:textColor="@color/im_color_242424" android:textColor="@color/im_color_242424"
android:textSize="@dimen/im_text_size_17" android:textSize="@dimen/im_text_size_17"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="您想要咨询下类哪类问题您想要咨询下类哪类问题?" tools:text="您想要咨询下类哪类问?"
android:layout_marginBottom="@dimen/platform_dp_16" android:layout_marginBottom="@dimen/platform_dp_16"
app:layout_constraintBottom_toTopOf="@id/which_question_rv" app:layout_constraintBottom_toTopOf="@id/which_question_rv"
/> />
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
android:maxHeight="72dp" android:maxHeight="72dp"
android:maxLines="4" android:maxLines="4"
android:textColorHint="#CCCCCC" android:textColorHint="#CCCCCC"
android:textSize="15sp" /> android:textSize="17sp" />
</LinearLayout> </LinearLayout>
<ImageView <ImageView
......
...@@ -16,10 +16,9 @@ ...@@ -16,10 +16,9 @@
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginBottom="13dp" android:layout_marginBottom="13dp"
android:layout_marginTop="@dimen/im_bubble_time_layout_margin_top" android:layout_marginTop="@dimen/im_bubble_time_layout_margin_top"
android:background="@drawable/im_nim_bg_message_tip_time"
android:paddingLeft="6dp" android:paddingLeft="6dp"
android:paddingRight="6dp" android:paddingRight="6dp"
android:textColor="#ffffff" android:textColor="#cccccc"
android:textSize="12dp" android:textSize="12dp"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" tools:visibility="visible"
......
...@@ -13,6 +13,6 @@ ...@@ -13,6 +13,6 @@
android:includeFontPadding="false" android:includeFontPadding="false"
android:lineSpacingExtra="3dip" android:lineSpacingExtra="3dip"
android:minHeight="40dp" android:minHeight="40dp"
android:textColor="@color/im_color_242424" android:textColor="@color/white"
android:textSize="17dp"/> android:textSize="17dp"/>
</LinearLayout> </LinearLayout>
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