Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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
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
android
android_vedio
Commits
d9c1c7b6
Commit
d9c1c7b6
authored
Dec 05, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改vip弹窗
parent
13b83ef7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+1
-0
VipForDialogActivity.kt
...duben/infinitefunjia/ui/activitys/VipForDialogActivity.kt
+11
-10
No files found.
video/app/src/main/AndroidManifest.xml
View file @
d9c1c7b6
...
...
@@ -135,6 +135,7 @@
android:name=
".ui.activitys.VipForDialogActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
android:theme=
"@style/TransparentTheme"
tools:node=
"merge"
>
<intent-filter
tools:node=
"replace"
>
<category
android:name=
"android.intent.category.BROWSABLE"
/>
...
...
video/app/src/main/java/com/duben/infinitefunjia/ui/activitys/VipForDialogActivity.kt
View file @
d9c1c7b6
...
...
@@ -435,7 +435,7 @@ class VipForDialogActivity : BaseActivity(), VipView, View.OnClickListener,
cbVipAgreement
.
setOnCheckedChangeListener
(
this
)
}
override
fun
onItemClick
(
position
:
Int
,
view
:
View
)
{
override
fun
onItemClick
(
position
:
Int
)
{
vipAdapter
.
setPosition
(
position
)
vipAdapter
.
notifyDataSetChanged
()
...
...
@@ -443,15 +443,15 @@ class VipForDialogActivity : BaseActivity(), VipView, View.OnClickListener,
if
(
vipList
!=
null
&&
vipList
!!
.
size
>
0
)
{
setVipContent
(
vipList
!!
[
position
])
if
(
vipList
!!
.
size
>
2
)
{
if
(
position
>
1
&&
position
<
vipList
!!
.
size
-
2
)
{
moveToCenter
(
view
);
}
else
if
(
position
in
0
..
1
)
{
rvVip
.
smoothScrollToPosition
(
0
);
}
else
{
rvVip
.
smoothScrollToPosition
(
vipList
!!
.
size
-
1
);
}
}
//
if (vipList!!.size > 2) {
//
if (position > 1 && position < vipList!!.size - 2) {
//
moveToCenter(view);
//
} else if (position in 0..1) {
//
rvVip.smoothScrollToPosition(0);
//
} else {
//
rvVip.smoothScrollToPosition(vipList!!.size - 1);
//
}
//
}
}
}
...
...
@@ -835,4 +835,5 @@ class VipForDialogActivity : BaseActivity(), VipView, View.OnClickListener,
e
.
printStackTrace
()
}
}
}
\ No newline at end of file
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