Commit 417854fd by 霍志良

reactor:修改专家名片UI

parent cb175ad0
......@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.00",
"m-user" : "0.0.60.26",
"m-home" : "0.0.22.33",
"m-im" : "0.0.18.21",
"m-im" : "0.0.18.23",
"m-dynamic" : "0.0.7.13",
"m-article" : "0.0.0.6",
......@@ -94,7 +94,7 @@ ext {
"m-fm" : "0.0.23.5",
"m-user" : "0.0.41.5",
"m-home" : "0.0.6.28",
"m-im" : "0.0.3.12",
"m-im" : "0.0.3.14",
"m-dynamic" : "0.0.1.7",
"m-muse" : "0.0.20.7",
......
......@@ -25,7 +25,7 @@ public class CustomAttachmentBusinessCard extends CustomAttachment {
public String secondTitle; //专家介绍
public String expertImg; //专家头像
public String tagList; //专家标签列表
public Float feedbackRate;//评价分
public Float feedbackRate=0f;//评价分
public String commentNum;//评价人数
public String workYears;//持证年限
public String orderNum;//服务人数
......
......@@ -84,7 +84,7 @@ public class MsgViewHolderBusinessCard extends MsgViewHolderBase {
businessCard.setTagData(tagsList);
expertName.setText(customBusinessCard.name);
expertSecondTitle.setText(customBusinessCard.secondTitle);
scoreExpert.setText(customBusinessCard.feedbackRate.toString());
scoreExpert.setText(customBusinessCard.feedbackRate.toString().substring(0,3));
scoreExpert.invalidate();
commentCount.setText(customBusinessCard.commentNum + "人评价");
cerfiticateYear.setText(customBusinessCard.workYears);
......@@ -94,7 +94,7 @@ public class MsgViewHolderBusinessCard extends MsgViewHolderBase {
m_im_ll_feedbackRate.removeAllViews();
for (int j = 0; j < 5; j++) {
for (int j = 1; j <= 5; j++) {
View view = LayoutInflater.from(context).inflate(
R.layout.m_im_feedbackrate,
m_im_ll_feedbackRate,
......@@ -102,7 +102,7 @@ public class MsgViewHolderBusinessCard extends MsgViewHolderBase {
);
ImageView startIMG = view.findViewById(R.id.feedBackRate);
if (customBusinessCard.feedbackRate > j) {
if (customBusinessCard.feedbackRate >= j) {
startIMG.setBackground(context.getResources().getDrawable(R.drawable.m_im_full_star));
} else if (customBusinessCard.feedbackRate < j && customBusinessCard.feedbackRate > j - 1) {
startIMG.setBackground(context.getResources().getDrawable(R.drawable.m_im_half_star));
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#20ffffff" />
<solid android:color="#40ffffff" />
<corners
android:radius="2dp"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#00ffffff"
android:endColor="#60808080"
android:startColor="#00000000"
android:endColor="#60000000"
android:angle="270" />
</shape>
\ No newline at end of file
......@@ -11,7 +11,6 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/platform_dp_10"
android:text="为你推荐了一位咨询师,快去看看吧!"
android:textColor="@color/color_9f9f9f"
android:textSize="12sp" />
......@@ -19,11 +18,11 @@
<android.support.constraint.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/platform_dp_6"
android:layout_marginTop="@dimen/platform_dp_10"
android:background="@drawable/im_custom_message_round_f7f7f7_4dp_bg">
<FrameLayout
android:layout_width="200dp"
android:layout_width="210dp"
android:layout_height="230dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
......@@ -34,19 +33,19 @@
<ImageView
android:id="@+id/expert_Img"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_width="210dp"
android:layout_height="210dp"
android:scaleType="centerCrop"
/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/dp_40">
android:paddingBottom="@dimen/platform_dp_20">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_height="110dp"
android:layout_alignParentBottom="true"
android:background="@drawable/im_message_shader_bg"
app:layout_constraintBottom_toBottomOf="parent">
......@@ -56,7 +55,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/platform_dp_10"
android:layout_marginTop="@dimen/platform_dp_38"
android:layout_marginTop="@dimen/platform_dp_27"
android:text="名字"
android:textColor="@color/white"
android:textSize="@dimen/im_text_size_15"
......@@ -83,11 +82,9 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/platform_dp_10"
android:layout_marginTop="@dimen/platform_dp_6"
android:layout_marginBottom="@dimen/platform_dp_22"
android:layout_marginTop="@dimen/platform_dp_4"
android:orientation="horizontal"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/expertName" />
......@@ -122,7 +119,7 @@
android:padding="0dp"
android:text="4.9"
android:textColor="@color/im_color_FF5040"
android:textSize="17sp"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
......@@ -187,6 +184,7 @@
android:layout_height="wrap_content"
android:fontFamily="@font/platform_din_bold"
android:text="999"
android:includeFontPadding="false"
android:textColor="@color/im_color_242424"
android:textSize="14sp" />
......@@ -213,6 +211,7 @@
android:layout_height="wrap_content"
android:fontFamily="@font/platform_din_bold"
android:text="999"
android:includeFontPadding="false"
android:textColor="@color/im_color_242424"
android:textSize="14sp" />
......@@ -238,6 +237,7 @@
android:layout_height="wrap_content"
android:fontFamily="@font/platform_din_bold"
android:text="999"
android:includeFontPadding="false"
android:textColor="@color/im_color_242424"
android:textSize="14sp" />
......
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