Open ekrmh opened 6 years ago
How to change active icon size ?
val item1 = AHBottomNavigationItem("Home", R.drawable.home, R.color.colorAccent) val item2 = AHBottomNavigationItem("Settings", R.drawable.settings, R.color.colorAccent) val item3 = AHBottomNavigationItem("Github", R.drawable.github, R.color.colorAccent) val item4 = AHBottomNavigationItem("Android", R.drawable.android, R.color.colorAccent) bottom_navigation.titleState = AHBottomNavigation.TitleState.ALWAYS_SHOW bottom_navigation.addItems(mutableListOf(item1,item2,item3,item4)) bottom_navigation.accentColor = Color.BLACK
val item1 = AHBottomNavigationItem("Home", R.drawable.home, R.color.colorAccent)
val item2 = AHBottomNavigationItem("Settings", R.drawable.settings, R.color.colorAccent)
val item3 = AHBottomNavigationItem("Github", R.drawable.github, R.color.colorAccent)
val item4 = AHBottomNavigationItem("Android", R.drawable.android, R.color.colorAccent)
bottom_navigation.titleState = AHBottomNavigation.TitleState.ALWAYS_SHOW
bottom_navigation.addItems(mutableListOf(item1,item2,item3,item4))
bottom_navigation.accentColor = Color.BLACK
You can resize the image
How to change active icon size ?
val item1 = AHBottomNavigationItem("Home", R.drawable.home, R.color.colorAccent)
val item2 = AHBottomNavigationItem("Settings", R.drawable.settings, R.color.colorAccent)
val item3 = AHBottomNavigationItem("Github", R.drawable.github, R.color.colorAccent)
val item4 = AHBottomNavigationItem("Android", R.drawable.android, R.color.colorAccent)
bottom_navigation.titleState = AHBottomNavigation.TitleState.ALWAYS_SHOW
bottom_navigation.addItems(mutableListOf(item1,item2,item3,item4))
bottom_navigation.accentColor = Color.BLACK