Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hadalive
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
yichen
hadalive
Commits
67df8a04
Commit
67df8a04
authored
May 16, 2022
by
Dell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、删除无用项
parent
f82cf75e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
SearchResultAdapter.java
...om/hupu/tv/player/app/ui/adapter/SearchResultAdapter.java
+0
-52
No files found.
app/src/main/java/com/hupu/tv/player/app/ui/adapter/SearchResultAdapter.java
deleted
100644 → 0
View file @
f82cf75e
package
com
.
hupu
.
tv
.
player
.
app
.
ui
.
adapter
;
import
android.view.View
;
import
android.widget.ImageView
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.softgarden.baselibrary.base.BaseActivity
;
import
com.hupu.tv.player.app.R
;
import
com.hupu.tv.player.app.app.Constants
;
import
com.hupu.tv.player.app.bean.MovieBean
;
import
com.hupu.tv.player.app.utils.CommonUtils
;
import
com.hupu.tv.player.app.utils.GlideUtils
;
/**
* @author by Dell
* @date on 2020/6/15
* @describe
*/
public
class
SearchResultAdapter
extends
BaseQuickAdapter
<
MovieBean
.
RecordsBean
,
BaseViewHolder
>
{
private
BaseActivity
baseActivity
;
public
SearchResultAdapter
(
int
layoutResId
,
BaseActivity
activity
)
{
super
(
layoutResId
);
baseActivity
=
activity
;
}
@Override
protected
void
convert
(
BaseViewHolder
helper
,
MovieBean
.
RecordsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_title
,
item
.
getVideoTitle
())
.
setText
(
R
.
id
.
tv_play_time
,
CommonUtils
.
formatTimeS
(
item
.
getVideoDuration
()))
.
setText
(
R
.
id
.
tv_like_count
,
String
.
valueOf
(
item
.
getVideoLike
()))
.
setText
(
R
.
id
.
tv_see_count
,
String
.
valueOf
(
item
.
getVideoPlayNum
()));
helper
.
getView
(
R
.
id
.
tv_play_time
).
setVisibility
(
View
.
VISIBLE
);
ImageView
ivCover
=
helper
.
getView
(
R
.
id
.
iv_cover
);
if
(
item
.
getTagId
()
==
Constants
.
AD_MOVIE_ITEM
)
{
//广告不显示VIP标志和时长
helper
.
getView
(
R
.
id
.
tv_play_time
).
setVisibility
(
View
.
GONE
);
if
(
item
.
getVideoEnCover
().
endsWith
(
".gif"
))
{
GlideUtils
.
loadRoundCircleImageCenterCropGif
(
baseActivity
,
item
.
getVideoEnCover
(),
ivCover
,
3
);
}
else
{
GlideUtils
.
loadRoundCircleImageCenterCrop
(
baseActivity
,
item
.
getVideoEnCover
(),
ivCover
,
3
);
}
}
else
{
GlideUtils
.
loadRoundCircleImageCenterCrop
(
baseActivity
,
item
.
getTransVideoCover
(),
ivCover
,
3
);
}
// .setText(R.id.tv_describe,item.getDescribe());
// GlideUtils.loadRoundCircleImageCenterCrop(baseActivity,
// item.getVideoEnCover(),
// helper.getView(R.id.iv_cover),4,R.drawable.shape_holder_place_recommend);
//
}
}
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