1、优化地图主页布局,适配2560尺寸
2、优化右侧面板UI 3、修改评测任务列表UI 4、增加当前任务UI及相关功能
This commit is contained in:
@@ -39,6 +39,8 @@ class MainActivity : BaseActivity() {
|
||||
private lateinit var binding: ActivityMainBinding
|
||||
private val viewModel by viewModels<MainViewModel>()
|
||||
|
||||
var switchFragment = false
|
||||
|
||||
//注入地图控制器
|
||||
@Inject
|
||||
lateinit var mapController: NIMapController
|
||||
@@ -115,9 +117,9 @@ class MainActivity : BaseActivity() {
|
||||
viewModel.liveDataMenuState.observe(this) {
|
||||
binding.mainActivityMenu.isSelected = it
|
||||
if (it == true) {
|
||||
binding.mainActivityMenuLayout.visibility = View.VISIBLE
|
||||
binding.mainActivityMenuGroup.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.mainActivityMenuLayout.visibility = View.GONE
|
||||
binding.mainActivityMenuGroup.visibility = View.INVISIBLE
|
||||
}
|
||||
|
||||
}
|
||||
@@ -225,6 +227,32 @@ class MainActivity : BaseActivity() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* zoomin
|
||||
*/
|
||||
fun zoomInOnclick(view: View) {
|
||||
mapController.animationHandler.zoomIn()
|
||||
}
|
||||
|
||||
/**
|
||||
* zoomOut
|
||||
*/
|
||||
fun zoomOutOnclick(view: View) {
|
||||
mapController.animationHandler.zoomOut()
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
fun onSwitchFragment() {
|
||||
switchFragment = !switchFragment
|
||||
binding.mainActivityFragmentSwitch.isSelected = switchFragment
|
||||
if (switchFragment) {
|
||||
binding.mainActivityFragmentGroup.visibility = View.GONE
|
||||
} else {
|
||||
binding.mainActivityFragmentGroup.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 点击录音按钮
|
||||
|
||||
Reference in New Issue
Block a user