📜  在底部导航视图导航组件上方显示小吃栏 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:19.304000             🧑  作者: Mango

代码示例2
private fun showSnackBarMessage() {
    val bottomNavView: BottomNavigationView = activity?.findViewById(R.id.bottom_nav)!!
    Snackbar.make(bottomNavView, "No data available", Snackbar.LENGTH_SHORT).apply {
        anchorView = bottomNavView
    }.show()
}