Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
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_fiveworld
Commits
d7975c25
Commit
d7975c25
authored
Aug 03, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目的页面禁止旋转已完成
精选体验的下标越界已修改
parent
f2f1ec67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
ItemEnterDestinationAdapter.kt
...a/com/mints/street/adapter/ItemEnterDestinationAdapter.kt
+5
-4
VrexperienceBean.kt
app/src/main/java/com/mints/street/bean/VrexperienceBean.kt
+1
-1
MainActivity.kt
app/src/main/java/com/mints/street/main/MainActivity.kt
+0
-9
No files found.
app/src/main/java/com/mints/street/adapter/ItemEnterDestinationAdapter.kt
View file @
d7975c25
...
@@ -49,19 +49,20 @@ class ItemEnterDestinationAdapter(
...
@@ -49,19 +49,20 @@ class ItemEnterDestinationAdapter(
holder
.
binding
.
tvName
.
text
=
it
[
position
].
area
holder
.
binding
.
tvName
.
text
=
it
[
position
].
area
holder
.
binding
.
tvNumberPeople
.
text
=
"${it[position].activeNum}W人去过"
holder
.
binding
.
tvNumberPeople
.
text
=
"${it[position].activeNum}W人去过"
it
[
position
].
url
?.
let
{
url
->
it
[
position
].
url
?.
let
{
url
->
for
(
index
in
0
..
2
)
{
val
size
=
it
[
position
].
url
?.
size
?:
0
for
(
index
in
0
until
size
)
{
when
(
index
)
{
when
(
index
)
{
0
->
{
0
->
{
ImageLoader
.
ImageBuilder
.
with
(
context
)
ImageLoader
.
ImageBuilder
.
with
(
context
)
.
setUrl
(
url
[
index
]).
setTargetView
(
holder
.
binding
.
image3
).
start
()
.
setUrl
(
url
[
index
]).
setTargetView
(
holder
.
binding
.
image3
).
start
()
}
}
1
->
{
1
->
{
ImageLoader
.
ImageBuilder
.
with
(
context
)
ImageLoader
.
ImageBuilder
.
with
(
context
)
.
setUrl
(
url
[
index
]).
setTargetView
(
holder
.
binding
.
image2
).
start
()
.
setUrl
(
url
[
index
]).
setTargetView
(
holder
.
binding
.
image2
).
start
()
}
}
2
->
{
2
->
{
ImageLoader
.
ImageBuilder
.
with
(
context
)
ImageLoader
.
ImageBuilder
.
with
(
context
)
.
setUrl
(
url
[
index
]).
setTargetView
(
holder
.
binding
.
image1
).
start
()
.
setUrl
(
url
[
index
]).
setTargetView
(
holder
.
binding
.
image1
).
start
()
}
}
}
}
...
...
app/src/main/java/com/mints/street/bean/VrexperienceBean.kt
View file @
d7975c25
...
@@ -7,7 +7,7 @@ class VreperienceBean: Serializable {
...
@@ -7,7 +7,7 @@ class VreperienceBean: Serializable {
inner
class
Data
(
inner
class
Data
(
val
activeNum
:
Double
,
val
activeNum
:
Double
,
val
area
:
String
,
val
area
:
String
,
val
url
:
List
<
String
>
val
url
:
List
<
String
>
?=
null
)
)
}
}
...
...
app/src/main/java/com/mints/street/main/MainActivity.kt
View file @
d7975c25
...
@@ -79,17 +79,8 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
...
@@ -79,17 +79,8 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
,
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
,
Manifest
.
permission
.
READ_PHONE_STATE
Manifest
.
permission
.
READ_PHONE_STATE
)
)
.
request
(
RequestCallback
{
allGranted
,
grantedList
,
deniedList
->
})
}
override
fun
onResume
()
{
super
.
onResume
()
viewModel
.
checkUpgrade
()
viewModel
.
checkUpgrade
()
}
}
var
oldTime
:
Long
=
0
var
oldTime
:
Long
=
0
override
fun
onKeyDown
(
keyCode
:
Int
,
event
:
KeyEvent
):
Boolean
{
override
fun
onKeyDown
(
keyCode
:
Int
,
event
:
KeyEvent
):
Boolean
{
when
(
keyCode
)
{
when
(
keyCode
)
{
...
...
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