Commit 694c22e1 authored by fengruiyu's avatar fengruiyu

1.去除vr页面

parent e9635526
......@@ -42,7 +42,7 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
binding.mainBottom.init {
when (it) {
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 -> {
binding.mainViewpager.setCurrentItem(2, false)
// stopAnim()
......@@ -50,13 +50,13 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
}
}
//加载本地GIF动图
ImageLoader.ImageBuilder.with(this)
.setDrawable(R.mipmap.ic_earth_map)
.setTargetView(binding.ivTakephoto).start()
// ImageLoader.ImageBuilder.with(this)
// .setDrawable(R.mipmap.ic_earth_map)
// .setTargetView(binding.ivTakephoto).start()
binding.mainBottom.interceptLongClick(
R.id.menu_home,
R.id.menu_square,
// R.id.menu_square,
R.id.menu_my
)
......@@ -134,10 +134,10 @@ private fun ViewPager2.initMain(activity: FragmentActivity): ViewPager2 {
//首页
HomeFragment()
}
1 -> {
//广场
VRFragment()
}
// 1 -> {
// //广场
// VRFragment()
// }
2 -> {
//个人中心
MyFragment()
......
......@@ -46,6 +46,7 @@
app:layout_constraintRight_toRightOf="parent">
<ImageView
android:visibility="gone"
android:id="@+id/ivTakephoto"
android:layout_width="60dp"
android:layout_height="60dp"
......
......@@ -7,10 +7,10 @@
android:icon="@drawable/menu_main"
android:title="@string/bottom_name_home" />
<item
android:id="@+id/menu_square"
android:icon="@drawable/menu_square"
tools:ignore="MenuTitle" />
<!-- <item-->
<!-- android:id="@+id/menu_square"-->
<!-- android:icon="@drawable/menu_square"-->
<!-- tools:ignore="MenuTitle" />-->
<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