Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
HBHAndroid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
杨秀秀
HBHAndroid
Commits
94f78e2a
Commit
94f78e2a
authored
Oct 30, 2023
by
小费同学阿
💬
Committed by
杨秀秀
Nov 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
68786 【企业app-android】我的点赞界面,点击资讯应该跳转进入资讯详情界面
parent
5939f3af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
MyLikeBean.kt
...n/java/com/xx/hbhbcompany/data/http/respons/MyLikeBean.kt
+2
-0
MylikeActivity.java
...ain/java/com/xx/hbhbcompany/ui/mylike/MylikeActivity.java
+16
-0
No files found.
hbhbcompany/src/main/java/com/xx/hbhbcompany/data/http/respons/MyLikeBean.kt
View file @
94f78e2a
...
...
@@ -10,5 +10,7 @@ class MyLikeBean(
var
publishTime
:
String
,
/*资讯点击量*/
var
clickNumber
:
String
,
/*资讯链接*/
var
informationUrl
:
String
,
)
{
}
\ No newline at end of file
hbhbcompany/src/main/java/com/xx/hbhbcompany/ui/mylike/MylikeActivity.java
View file @
94f78e2a
package
com
.
xx
.
hbhbcompany
.
ui
.
mylike
;
import
static
com
.
xx
.
hbhbcompany
.
utils
.
RetrofitClient
.
baseH5Url
;
import
static
me
.
goldze
.
mvvmhabit
.
utils
.
Utils
.
Interceptor_TOKEN
;
import
android.os.Bundle
;
import
android.view.View
;
...
...
@@ -13,8 +16,11 @@ import com.xx.hbhbcompany.BR;
import
com.xx.hbhbcompany.R
;
import
com.xx.hbhbcompany.activity.adapter.MyLikeAdapter
;
import
com.xx.hbhbcompany.data.http.requst.MyLikeRequest
;
import
com.xx.hbhbcompany.data.http.respons.MyCommentBean
;
import
com.xx.hbhbcompany.data.http.respons.MyLikeBean
;
import
com.xx.hbhbcompany.databinding.ActivityMylikeBinding
;
import
com.xx.hbhbcompany.ui.web.CommWabActivity
;
import
com.xx.xxviewlibrary.base.xxBaseRecyclerViewAdapter
;
import
java.util.List
;
...
...
@@ -42,7 +48,17 @@ public class MylikeActivity extends BaseActivity<ActivityMylikeBinding, MyLikeVi
/*环渤海-资讯信息列表*/
//获取适配器上下文
viewModel
.
myLikeAdapter
=
new
MyLikeAdapter
(
this
);
viewModel
.
myLikeAdapter
.
setOnItemClick
(
new
xxBaseRecyclerViewAdapter
.
OnItemClick
<
MyLikeBean
>()
{
@Override
public
void
itemClickCalBack
(
int
position
,
MyLikeBean
data
)
{
Bundle
bundle
=
new
Bundle
();
bundle
.
putString
(
"title"
,
"资讯详情"
);
bundle
.
putString
(
"URL"
,
baseH5Url
+
data
.
getInformationUrl
()+
"&yplrm="
+
Interceptor_TOKEN
);
startActivity
(
CommWabActivity
.
class
,
bundle
);
}
});
//把adapterset进去
binding
.
rvMyLikeList
.
setAdapter
(
viewModel
.
myLikeAdapter
);
...
...
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