Commit 694c22e1 authored by fengruiyu's avatar fengruiyu

1.去除vr页面

parent e9635526
...@@ -42,7 +42,7 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() { ...@@ -42,7 +42,7 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
binding.mainBottom.init { binding.mainBottom.init {
when (it) { when (it) {
R.id.menu_home -> binding.mainViewpager.setCurrentItem(0, false) R.id.menu_home -> binding.mainViewpager.setCurrentItem(0, false)
R.id.menu_square -> binding.mainViewpager.setCurrentItem(1, false) // R.id.menu_square -> binding.mainViewpager.setCurrentItem(1, false)
R.id.menu_my -> { R.id.menu_my -> {
binding.mainViewpager.setCurrentItem(2, false) binding.mainViewpager.setCurrentItem(2, false)
// stopAnim() // stopAnim()
...@@ -50,13 +50,13 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() { ...@@ -50,13 +50,13 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
} }
} }
//加载本地GIF动图 //加载本地GIF动图
ImageLoader.ImageBuilder.with(this) // ImageLoader.ImageBuilder.with(this)
.setDrawable(R.mipmap.ic_earth_map) // .setDrawable(R.mipmap.ic_earth_map)
.setTargetView(binding.ivTakephoto).start() // .setTargetView(binding.ivTakephoto).start()
binding.mainBottom.interceptLongClick( binding.mainBottom.interceptLongClick(
R.id.menu_home, R.id.menu_home,
R.id.menu_square, // R.id.menu_square,
R.id.menu_my R.id.menu_my
) )
...@@ -134,10 +134,10 @@ private fun ViewPager2.initMain(activity: FragmentActivity): ViewPager2 { ...@@ -134,10 +134,10 @@ private fun ViewPager2.initMain(activity: FragmentActivity): ViewPager2 {
//首页 //首页
HomeFragment() HomeFragment()
} }
1 -> { // 1 -> {
//广场 // //广场
VRFragment() // VRFragment()
} // }
2 -> { 2 -> {
//个人中心 //个人中心
MyFragment() MyFragment()
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
app:layout_constraintRight_toRightOf="parent"> app:layout_constraintRight_toRightOf="parent">
<ImageView <ImageView
android:visibility="gone"
android:id="@+id/ivTakephoto" android:id="@+id/ivTakephoto"
android:layout_width="60dp" android:layout_width="60dp"
android:layout_height="60dp" android:layout_height="60dp"
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
android:icon="@drawable/menu_main" android:icon="@drawable/menu_main"
android:title="@string/bottom_name_home" /> android:title="@string/bottom_name_home" />
<item <!-- <item-->
android:id="@+id/menu_square" <!-- android:id="@+id/menu_square"-->
android:icon="@drawable/menu_square" <!-- android:icon="@drawable/menu_square"-->
tools:ignore="MenuTitle" /> <!-- tools:ignore="MenuTitle" />-->
<item <item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment