Commit 357011e5 authored by 张释方's avatar 张释方

恢复隐藏内容

parent 1e1014b3
...@@ -47,21 +47,21 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() { ...@@ -47,21 +47,21 @@ 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()
} }
} }
} }
// //加载本地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
) )
...@@ -72,8 +72,8 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() { ...@@ -72,8 +72,8 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
.subscribe { .subscribe {
} }
// UpdateHelper.processUpdate(this@MainActivity, UpgradeInfo("1","2","3","4", UpdateHelper.processUpdate(this@MainActivity, UpgradeInfo("1","2","3","4",
// "5","6","7",false)) "5","6","7",false))
} }
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layout> <layout>
<data> <data>
<variable <variable
name="viewModel" name="viewModel"
type="com.mints.street.main.MainViewModel" /> type="com.mints.street.main.MainViewModel" />
</data> </data>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".main.MainActivity"> tools:context=".main.MainActivity">
<androidx.viewpager2.widget.ViewPager2 <androidx.viewpager2.widget.ViewPager2
android:id="@+id/mainViewpager" android:id="@+id/mainViewpager"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -35,7 +39,7 @@ ...@@ -35,7 +39,7 @@
app:menu="@menu/menu_navigation" /> app:menu="@menu/menu_navigation" />
</FrameLayout> </FrameLayout>
<!--<FrameLayout <FrameLayout
android:id="@+id/flTakephoto" android:id="@+id/flTakephoto"
android:layout_width="68dp" android:layout_width="68dp"
android:layout_height="68dp" android:layout_height="68dp"
...@@ -50,8 +54,7 @@ ...@@ -50,8 +54,7 @@
android:layout_height="60dp" android:layout_height="60dp"
android:layout_gravity="center" android:layout_gravity="center"
android:scaleType="fitXY" /> android:scaleType="fitXY" />
</FrameLayout>--> </FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
......
...@@ -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