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
38ced661
Commit
38ced661
authored
May 06, 2022
by
upwork.021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 标签大于4个字显示xxxx...
parent
251487c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
config.gradle
config.gradle
+3
-5
ExpertSearchAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
+7
-1
consultant_item_tag.xml
m-consultant/src/main/res/layout/consultant_item_tag.xml
+0
-1
No files found.
config.gradle
View file @
38ced661
...
...
@@ -6,11 +6,11 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.69"
,
"m-consultant"
:
"0.0.60.
19
"
,
"m-consultant"
:
"0.0.60.
20
"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.04"
,
"m-home"
:
"0.0.23.18"
,
"m-im"
:
"0.0.21.
29
"
,
"m-im"
:
"0.0.21.
30
"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -92,12 +92,10 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.49.69"
,
"m-consultant"
:
"0.0.60.
19
"
,
"m-consultant"
:
"0.0.60.
20
"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.04"
,
"m-home"
:
"0.0.23.18"
,
"m-im"
:
"0.0.21.29"
,
"m-home"
:
"0.0.23.17"
,
"m-im"
:
"0.0.21.30"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
View file @
38ced661
...
...
@@ -230,7 +230,13 @@ class ExpertSearchAdapter(
if
(
it
.
isNotEmpty
()){
for
(
tag
in
itemBean
.
tagList
){
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
consultant_item_tag
,
holder
.
ll_tags
,
false
)
view
.
tvTag
.
text
=
tag
.
tagName
tag
.
tagName
?.
let
{
name
->
if
(
name
.
length
>
4
){
view
.
tvTag
.
text
=
"${name.substring(0,4)}…"
}
else
{
view
.
tvTag
.
text
=
name
}
}
if
(
tag
.
isHigh
==
1
){
view
.
tvTag
.
setBackgroundResource
(
R
.
drawable
.
consultant_bg_radius_line_eb892c
)
view
.
tvTag
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_EB892C
))
...
...
m-consultant/src/main/res/layout/consultant_item_tag.xml
View file @
38ced661
...
...
@@ -8,7 +8,6 @@
android:gravity=
"center"
android:layout_marginEnd=
"6dp"
android:padding=
"3dp"
android:maxLength=
"5"
android:textColor=
"@color/platform_color_999999"
android:textSize=
"10sp"
tools:text=
"恋爱情感"
/>
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