Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
ab9603dd
Commit
ab9603dd
authored
Sep 08, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改UI
parent
7199799a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
MsgViewHolderBusinessCard.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderBusinessCard.java
+5
-2
im_background_2dp_gray.xml
m-im/src/main/res/drawable/im_background_2dp_gray.xml
+1
-1
im_ui_message_custom_business_card.xml
m-im/src/main/res/layout/im_ui_message_custom_business_card.xml
+8
-3
No files found.
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderBusinessCard.java
View file @
ab9603dd
...
...
@@ -2,6 +2,8 @@ package com.yidianling.im.session.viewholder;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.text.SpannableString
;
import
android.text.style.ImageSpan
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
...
...
@@ -86,6 +88,8 @@ public class MsgViewHolderBusinessCard extends MsgViewHolderBase {
scoreExpert
.
setText
(
customBusinessCard
.
feedbackRate
.
toString
());
scoreExpert
.
invalidate
();
commentCount
.
setText
(
customBusinessCard
.
commentNum
+
"人评价"
);
cerfiticateYear
.
setText
(
customBusinessCard
.
workYears
);
serviceCount
.
setText
(
customBusinessCard
.
orderNum
);
...
...
@@ -101,7 +105,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
));
...
...
@@ -110,7 +114,6 @@ public class MsgViewHolderBusinessCard extends MsgViewHolderBase {
}
m_im_ll_feedbackRate
.
addView
(
view
);
}
}
@Override
...
...
m-im/src/main/res/drawable/im_background_2dp_gray.xml
View file @
ab9603dd
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#
60959595
"
/>
<solid
android:color=
"#
20ffffff
"
/>
<corners
android:radius=
"2dp"
/>
</shape>
m-im/src/main/res/layout/im_ui_message_custom_business_card.xml
View file @
ab9603dd
...
...
@@ -121,11 +121,12 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
android:includeFontPadding=
"false"
android:padding=
"0dp"
android:layout_marginTop=
"@dimen/platform_dp_8"
android:textSize=
"17sp"
android:gravity=
"bottom"
android:foregroundGravity=
"bottom"
android:fontFamily=
"@font/platform_din_bold"
android:textColor=
"@color/im_color_FF5040"
app:layout_constraintTop_toBottomOf=
"@id/m_im_ll_feedbackRate"
>
</TextView>
<TextView
...
...
@@ -133,6 +134,7 @@
android:layout_height=
"wrap_content"
android:text=
"0000人评价"
android:textSize=
"7sp"
android:id=
"@+id/commentCount"
app:layout_constraintTop_toBottomOf=
"@id/scoreExpert"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
@@ -151,7 +153,7 @@
app:layout_constraintLeft_toRightOf=
"@id/scoreExpert"
app:layout_constraintBottom_toBottomOf=
"@id/scoreExpert"
android:layout_marginLeft=
"@dimen/platform_dp_4"
android:layout_marginBottom=
"@dimen/platform_dp_
2
"
android:layout_marginBottom=
"@dimen/platform_dp_
4
"
>
</LinearLayout>
<LinearLayout
...
...
@@ -177,6 +179,7 @@
android:layout_height=
"wrap_content"
android:text=
"999"
android:textSize=
"14sp"
android:fontFamily=
"@font/platform_din_bold"
android:textColor=
"@color/im_color_242424"
android:id=
"@+id/cerfiticateYear"
>
...
...
@@ -204,6 +207,7 @@
android:layout_height=
"wrap_content"
android:text=
"999"
android:textSize=
"14sp"
android:fontFamily=
"@font/platform_din_bold"
android:textColor=
"@color/im_color_242424"
android:id=
"@+id/serviceCount"
>
...
...
@@ -230,6 +234,7 @@
android:layout_height=
"wrap_content"
android:text=
"999"
android:textSize=
"14sp"
android:fontFamily=
"@font/platform_din_bold"
android:textColor=
"@color/im_color_242424"
android:id=
"@+id/serviceTime"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment