Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
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_street
Commits
32cbdbf8
Commit
32cbdbf8
authored
Aug 05, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录协议样式,VR接口防止二次调用
parent
6090d3b9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
25 deletions
+14
-25
FeaturedExperienceViewModel.kt
...a/com/mints/street/main/vr/FeaturedExperienceViewModel.kt
+0
-23
FreeZoneFragment.kt
...rc/main/java/com/mints/street/main/vr/FreeZoneFragment.kt
+1
-1
checkbox_style.xml
app/src/main/res/drawable/checkbox_style.xml
+8
-0
layout_popupwindow.xml
app/src/main/res/layout/layout_popupwindow.xml
+2
-1
ic_vip_enable.png
app/src/main/res/mipmap-xhdpi/ic_vip_enable.png
+0
-0
ic_vip_none.png
app/src/main/res/mipmap-xhdpi/ic_vip_none.png
+0
-0
styles.xml
app/src/main/res/values/styles.xml
+3
-0
No files found.
app/src/main/java/com/mints/street/main/vr/FeaturedExperienceViewModel.kt
View file @
32cbdbf8
...
...
@@ -20,29 +20,6 @@ class FeaturedExperienceViewModel(application: Application):BaseViewModel(applic
val
VrmapBean
:
MutableLiveData
<
VrmapBean
>
=
MutableLiveData
()
val
VreperienceBean
:
MutableLiveData
<
VreperienceBean
>
=
MutableLiveData
()
fun
vrPlaces
(){
//无参数传递
ApiModel
.
vrPlaces
(
lifecycleProvider
).
safeSubscribe
(
object
:
HttpSubscribeImpl
<
BaseResponse
<
VrmapBean
>>(
this
@FeaturedExperienceViewModel
,
true
){
override
fun
onBusinessSuccess
(
response
:
BaseResponse
<
VrmapBean
>)
{
VrmapBean
.
value
=
response
.
result
val
a
:
MutableList
<
ScenicSpotBean
>
=
ArrayList
()
for
(
item
in
response
.
result
.
internal
!!
){
a
.
add
(
ScenicSpotBean
(
name
=
item
.
name
,
url
=
item
.
url
,
starRating
=
item
.
stars
,
images
=
item
.
img
)
)
}
}
override
fun
onError
(
e
:
Throwable
)
{
KLog
.
e
(
"vrPlaces"
,
"请求失败 : $e"
)
}
}
)
}
fun
getChooseExperienceHeadData
(){
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"pageNum"
]
=
1
...
...
app/src/main/java/com/mints/street/main/vr/FreeZoneFragment.kt
View file @
32cbdbf8
...
...
@@ -51,7 +51,7 @@ class FreeZoneFragment : BaseFragment<FragmentFreeZoneBinding, FreeZoneViewModel
//获取VR全景数据
viewModel
.
vrPlaces
()
}
viewModel
.
vrPlaces
()
//
viewModel.vrPlaces()
}
...
...
app/src/main/res/drawable/checkbox_style.xml
0 → 100644
View file @
32cbdbf8
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/ic_vip_enable"
android:state_checked=
"true"
/>
<item
android:drawable=
"@mipmap/ic_vip_none"
android:state_checked=
"false"
/>
<item
android:drawable=
"@mipmap/ic_vip_none"
/>
</selector>
\ No newline at end of file
app/src/main/res/layout/layout_popupwindow.xml
View file @
32cbdbf8
...
...
@@ -65,8 +65,9 @@
android:padding=
"10dp"
>
<CheckBox
android:layout_marginRight=
"6dp"
android:id=
"@+id/cb_checked"
style=
"@style/
MyCheckBox
"
style=
"@style/
CustomCheckboxTheme
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
...
...
app/src/main/res/mipmap-xhdpi/ic_vip_enable.png
0 → 100644
View file @
32cbdbf8
2.88 KB
app/src/main/res/mipmap-xhdpi/ic_vip_none.png
0 → 100644
View file @
32cbdbf8
1.04 KB
app/src/main/res/values/styles.xml
View file @
32cbdbf8
...
...
@@ -64,4 +64,7 @@
<item
name=
"android:windowEnterAnimation"
>
@anim/dialog_bottom_in
</item>
<item
name=
"android:windowExitAnimation"
>
@anim/dialog_bottom_out
</item>
</style>
<style
name=
"CustomCheckboxTheme"
parent=
"@android:style/Widget.CompoundButton.CheckBox"
>
<item
name=
"android:button"
>
@drawable/checkbox_style
</item>
</style>
</resources>
\ 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