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
c281a217
Commit
c281a217
authored
Jul 19, 2021
by
张释方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加沉浸式状态栏
parent
19dfec14
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
14 deletions
+21
-14
MainActivity.kt
app/src/main/java/com/mints/street/main/MainActivity.kt
+3
-1
MyFragment.kt
app/src/main/java/com/mints/street/main/my/MyFragment.kt
+10
-10
OpenvipActivity.kt
...src/main/java/com/mints/street/main/my/OpenvipActivity.kt
+3
-1
VRFragment.kt
app/src/main/java/com/mints/street/main/vr/VRFragment.kt
+3
-0
activity_openvip.xml
app/src/main/res/layout/activity_openvip.xml
+1
-0
fragment_vr.xml
app/src/main/res/layout/fragment_vr.xml
+1
-2
No files found.
app/src/main/java/com/mints/street/main/MainActivity.kt
View file @
c281a217
...
...
@@ -35,7 +35,9 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
getStatusBarHeightView
():
View
?
{
return
null
}
override
fun
initData
()
{
super
.
initData
()
//初始化viewpager2
...
...
app/src/main/java/com/mints/street/main/my/MyFragment.kt
View file @
c281a217
...
...
@@ -67,7 +67,7 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
initData
()
{
super
.
initData
()
//
StatusBarUtil.setHeightAndPadding(AppManager.getAppManager().currentActivity, binding.llMyRoot)
StatusBarUtil
.
setHeightAndPadding
(
AppManager
.
getAppManager
().
currentActivity
,
binding
.
llMyRoot
)
srl_my
.
setOnRefreshListener
(
this
)
//隐藏立即领取
// bt_try.visibility = View.GONE
...
...
@@ -93,7 +93,7 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
private
fun
initListener
()
{
//设置登录点击事件
RxUtils
.
onMultiClick
(
binding
.
llMyLogin
){
RxUtils
.
onMultiClick
(
binding
.
llMyLogin
)
{
// binding.llMyLogin.setOnClickListener {
if
(!
userManager
.
userIsLogin
())
{
...
...
@@ -114,7 +114,7 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
tv_private
?.
setOnClickListener
(
this
)
iv_weixin
?.
setOnClickListener
(
this
)
// ly_phone?.setOnClickListener(this)
RxUtils
.
onMultiClick
(
ly_phone
){
RxUtils
.
onMultiClick
(
ly_phone
)
{
if
(
cb_checked
!!
.
isChecked
)
{
startActivity
(
LoginActivity
::
class
.
java
)
mBottomSheetDialog
!!
.
dismiss
()
...
...
@@ -137,10 +137,10 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
}
RxUtils
.
onMultiClick
(
aboutus
){
RxUtils
.
onMultiClick
(
aboutus
)
{
startActivity
(
AboutusActivity
::
class
.
java
)
}
RxUtils
.
onMultiClick
(
moresettings
){
RxUtils
.
onMultiClick
(
moresettings
)
{
startActivity
(
MoresettingsActivity
::
class
.
java
)
}
}
...
...
@@ -197,10 +197,10 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), OnRefreshList
// }
// }
R
.
id
.
tv_regist
->
{
MintsWebViewActivity
.
startWebView
(
name
=
"用户协议"
,
url
=
"http://test.mints-id.com/map-api/map/register.html"
)
MintsWebViewActivity
.
startWebView
(
name
=
"用户协议"
,
url
=
"http://test.mints-id.com/map-api/map/register.html"
)
}
R
.
id
.
tv_private
->
{
MintsWebViewActivity
.
startWebView
(
name
=
"隐私协议"
,
url
=
"http://test.mints-id.com/map-api/map/privacy.html"
)
MintsWebViewActivity
.
startWebView
(
name
=
"隐私协议"
,
url
=
"http://test.mints-id.com/map-api/map/privacy.html"
)
}
}
...
...
app/src/main/java/com/mints/street/main/my/OpenvipActivity.kt
View file @
c281a217
...
...
@@ -22,8 +22,10 @@ import com.mints.street.widget.dialog.DialogListener
import
com.mints.street.widget.dialog.DialogUtils
import
kotlinx.android.synthetic.main.activity_openvip.*
import
kotlinx.android.synthetic.main.include_header.*
import
me.goldze.mvvmhabit.base.AppManager
import
me.goldze.mvvmhabit.utils.AppUtils
import
me.goldze.mvvmhabit.utils.ToastUtils
import
me.goldze.mvvmhabit.utils.systembar.StatusBarUtil
class
OpenvipActivity
:
BaseActivity
<
ActivityOpenvipBinding
,
OpenvipViewModel
>(),
View
.
OnClickListener
{
...
...
@@ -41,7 +43,7 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
}
override
fun
initData
()
{
super
.
initData
()
StatusBarUtil
.
setHeightAndPadding
(
this
,
binding
.
viewBg
)
//获取vip福利信息
viewModel
.
openvipInfo
()
//获取支付方式
...
...
app/src/main/java/com/mints/street/main/vr/VRFragment.kt
View file @
c281a217
...
...
@@ -18,7 +18,9 @@ import com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.databinding.FragmentVrBinding
import
com.mints.street.main.my.MyFragment
import
me.goldze.mvvmhabit.base.AppManager
import
me.goldze.mvvmhabit.utils.Utils
import
me.goldze.mvvmhabit.utils.systembar.StatusBarUtil
import
net.lucode.hackware.magicindicator.MagicIndicator
import
net.lucode.hackware.magicindicator.buildins.UIUtil
import
net.lucode.hackware.magicindicator.buildins.commonnavigator.CommonNavigator
...
...
@@ -41,6 +43,7 @@ class VRFragment : BaseFragment<FragmentVrBinding, VRViewModel>() {
override
fun
initData
()
{
super
.
initData
()
StatusBarUtil
.
setHeightAndPadding
(
AppManager
.
getAppManager
().
currentActivity
,
binding
.
magicIndicator
)
initTabFragment
()
}
...
...
app/src/main/res/layout/activity_openvip.xml
View file @
c281a217
...
...
@@ -15,6 +15,7 @@
android:layout_height=
"wrap_content"
>
<View
android:id=
"@+id/view_bg"
android:layout_width=
"match_parent"
android:layout_height=
"200dp"
android:background=
"@color/black"
/>
...
...
app/src/main/res/layout/fragment_vr.xml
View file @
c281a217
...
...
@@ -8,8 +8,7 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<net.lucode.hackware.magicindicator.MagicIndicator
android:id=
"@+id/magic_indicator"
android:layout_width=
"wrap_content"
...
...
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