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
417854fd
Commit
417854fd
authored
Sep 22, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reactor:修改专家名片UI
parent
cb175ad0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
config.gradle
config.gradle
+2
-2
CustomAttachmentBusinessCard.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentBusinessCard.java
+1
-1
MsgViewHolderBusinessCard.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderBusinessCard.java
+3
-3
im_background_2dp_gray.xml
m-im/src/main/res/drawable/im_background_2dp_gray.xml
+1
-1
im_message_shader_bg.xml
m-im/src/main/res/drawable/im_message_shader_bg.xml
+3
-2
im_ui_message_custom_business_card.xml
m-im/src/main/res/layout/im_ui_message_custom_business_card.xml
+12
-12
No files found.
config.gradle
View file @
417854fd
...
...
@@ -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.2
1
"
,
"m-im"
:
"0.0.18.2
3
"
,
"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.1
2
"
,
"m-im"
:
"0.0.3.1
4
"
,
"m-dynamic"
:
"0.0.1.7"
,
"m-muse"
:
"0.0.20.7"
,
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentBusinessCard.java
View file @
417854fd
...
...
@@ -25,7 +25,7 @@ public class CustomAttachmentBusinessCard extends CustomAttachment {
public
String
secondTitle
;
//专家介绍
public
String
expertImg
;
//专家头像
public
String
tagList
;
//专家标签列表
public
Float
feedbackRate
;
//评价分
public
Float
feedbackRate
=
0
f
;
//评价分
public
String
commentNum
;
//评价人数
public
String
workYears
;
//持证年限
public
String
orderNum
;
//服务人数
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderBusinessCard.java
View file @
417854fd
...
...
@@ -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
));
...
...
m-im/src/main/res/drawable/im_background_2dp_gray.xml
View file @
417854fd
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#
2
0ffffff"
/>
<solid
android:color=
"#
4
0ffffff"
/>
<corners
android:radius=
"2dp"
/>
</shape>
m-im/src/main/res/drawable/im_message_shader_bg.xml
View file @
417854fd
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
android:startColor=
"#00
ffffff
"
android:endColor=
"#60
80808
0"
android:startColor=
"#00
000000
"
android:endColor=
"#60
00000
0"
android:angle=
"270"
/>
</shape>
\ No newline at end of file
m-im/src/main/res/layout/im_ui_message_custom_business_card.xml
View file @
417854fd
...
...
@@ -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=
"2
0
0dp"
android:layout_width=
"2
1
0dp"
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=
"2
0
0dp"
android:layout_height=
"2
0
0dp"
android:layout_width=
"2
1
0dp"
android:layout_height=
"2
1
0dp"
android:scaleType=
"centerCrop"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:paddingBottom=
"@dimen/
dp_4
0"
>
android:paddingBottom=
"@dimen/
platform_dp_2
0"
>
<android.support.constraint.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"1
0
0dp"
android:layout_height=
"1
1
0dp"
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=
"1
7
sp"
android:textSize=
"1
5
sp"
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"
/>
...
...
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