Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_freeworld
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_freeworld
Commits
6987aafa
Commit
6987aafa
authored
Jul 23, 2021
by
张释方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改Vr街景详细信息界面逻辑
parent
8bdad791
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
EnterDestinationAdapter.kt
.../java/com/mints/street/adapter/EnterDestinationAdapter.kt
+4
-0
ItemEnterDestinationAdapter.kt
...a/com/mints/street/adapter/ItemEnterDestinationAdapter.kt
+6
-0
FreeZoneFragment.kt
...rc/main/java/com/mints/street/main/vr/FreeZoneFragment.kt
+0
-3
No files found.
app/src/main/java/com/mints/street/adapter/EnterDestinationAdapter.kt
View file @
6987aafa
package
com.mints.street.adapter
import
android.content.Context
import
android.content.Intent
import
android.view.View
import
androidx.core.content.ContextCompat.startActivity
import
androidx.databinding.ObservableArrayList
import
androidx.databinding.ObservableList
import
androidx.databinding.ViewDataBinding
...
...
@@ -15,7 +17,9 @@ import com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.bean.VrmapBean
import
com.mints.street.databinding.EnterDestinationAdapterBinding
import
com.mints.street.main.vr.DetailedActivity
import
com.mints.street.main.vr.FreeZoneViewModel
import
com.mints.street.webview.MintsWebViewActivity
import
me.tatarka.bindingcollectionadapter2.BindingRecyclerViewAdapter
import
me.tatarka.bindingcollectionadapter2.ItemBinding
...
...
app/src/main/java/com/mints/street/adapter/ItemEnterDestinationAdapter.kt
View file @
6987aafa
package
com.mints.street.adapter
import
android.content.Context
import
android.content.Intent
import
com.alibaba.android.vlayout.layout.LinearLayoutHelper
import
com.fry.base.adapter.AbstractVLayoutBaseAdapter
import
com.fry.base.adapter.BindingViewHolder
...
...
@@ -8,6 +9,7 @@ import com.fry.base.utils.ImageLoader
import
com.mints.street.R
import
com.mints.street.bean.VrmapBean
import
com.mints.street.databinding.ItemEnterDestinationAdapterBinding
import
com.mints.street.main.vr.DetailedActivity
/**
...
...
@@ -34,6 +36,10 @@ class ItemEnterDestinationAdapter(
}
else
{
bgLayoutParams
.
width
=
a
.
widthPixels
}
holder
.
itemView
.
setOnClickListener
{
var
intent
=
Intent
(
context
,
DetailedActivity
::
class
.
java
)
context
.
startActivity
(
intent
)
}
list
?.
let
{
it
->
holder
.
binding
.
tvName
.
text
=
it
[
position
].
name
holder
.
binding
.
tvNumberPeople
.
text
=
"人数"
...
...
app/src/main/java/com/mints/street/main/vr/FreeZoneFragment.kt
View file @
6987aafa
...
...
@@ -40,7 +40,6 @@ class FreeZoneFragment : BaseFragment<FragmentFreeZoneBinding, FreeZoneViewModel
override
fun
initData
()
{
super
.
initData
()
//初始化布局管理器
if
(
context
==
null
)
return
vLayout
=
VirtualLayoutManager
(
context
!!
);
...
...
@@ -49,8 +48,6 @@ class FreeZoneFragment : BaseFragment<FragmentFreeZoneBinding, FreeZoneViewModel
binding
.
listView
.
layoutManager
=
vLayout
binding
.
listView
.
adapter
=
mAdapter
}
override
fun
initViewObservable
()
{
...
...
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