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
9d4e0690
Commit
9d4e0690
authored
Nov 20, 2019
by
洪国微
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加双11活动标签
parent
ea1da919
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
CourseHomeBodyBean.java
m-course/src/main/java/com/yidianling/course/bean/CourseHomeBodyBean.java
+8
-1
CourseHostInfoBean.java
m-course/src/main/java/com/yidianling/course/bean/CourseHostInfoBean.java
+8
-0
CourseItemNewView.kt
m-course/src/main/java/com/yidianling/course/widget/CourseItemNewView.kt
+10
-1
item_course_new_list_view.xml
m-course/src/main/res/layout/item_course_new_list_view.xml
+8
-0
No files found.
m-course/src/main/java/com/yidianling/course/bean/CourseHomeBodyBean.java
View file @
9d4e0690
...
...
@@ -36,5 +36,12 @@ public class CourseHomeBodyBean {
public
String
originalApplyFee
;
public
boolean
isBuy
;
public
String
demoFile
;
/**
* 活动图标
*/
public
String
activityImg
;
/**
* 是否参加活动
*/
public
String
joinActivity
;
}
m-course/src/main/java/com/yidianling/course/bean/CourseHostInfoBean.java
View file @
9d4e0690
...
...
@@ -28,4 +28,12 @@ public class CourseHostInfoBean {
public
String
askTotalTime
;
public
String
helpLong
;
public
ShareData
shareData
;
/**
* 活动图标
*/
public
String
activityImg
;
/**
* 是否参加活动
*/
public
String
joinActivity
;
}
m-course/src/main/java/com/yidianling/course/widget/CourseItemNewView.kt
View file @
9d4e0690
...
...
@@ -75,7 +75,16 @@ class CourseItemNewView : ConstraintLayout {
.
load
(
headUrl
)
.
into
(
iv_head
)
tv_title
.
text
=
course
.
title
//活动标签
if
(!
TextUtils
.
isEmpty
(
course
.
courseHostInfo
?.
activityImg
)){
img_activity
.
visibility
=
View
.
VISIBLE
GlideApp
.
with
(
context
).
load
(
course
.
courseHostInfo
?.
activityImg
).
into
(
img_activity
)
tv_title
.
text
=
"\u3000\u3000\u3000\u0020"
+
course
.
title
}
else
{
img_activity
.
visibility
=
View
.
GONE
tv_title
.
text
=
course
.
title
}
if
(!
TextUtils
.
isEmpty
(
course
.
doctorName
))
{
doctorName
=
course
.
doctorName
}
else
{
...
...
m-course/src/main/res/layout/item_course_new_list_view.xml
View file @
9d4e0690
...
...
@@ -82,6 +82,14 @@
app:layout_constraintTop_toTopOf=
"@+id/iv_head"
tools:text=
"走出余光恐惧,一位余光恐惧者的亲诉一位余光恐惧者的亲诉一位余光恐惧者的亲诉一位余光恐惧者的亲诉"
/>
<ImageView
android:id=
"@+id/img_activity"
android:layout_width=
"47dp"
android:layout_height=
"15dp"
android:layout_marginTop=
"3.3dp"
app:layout_constraintTop_toTopOf=
"@+id/tv_title"
app:layout_constraintLeft_toLeftOf=
"@+id/tv_title"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_doctor_info"
android:layout_width=
"0dp"
...
...
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