Open AKTDev opened 6 years ago
@AKTDev Try this :
`circleMenu.setMainMenu(Color.parseColor("#CDCDCD"), R.drawable.icon_menu, R.drawable.icon_cancel) .addSubMenu(Color.parseColor("#258CFF"), R.drawable.single_dice) .addSubMenu(Color.parseColor("#30A400"), R.drawable.double_dice) .addSubMenu(Color.parseColor("#FF4B32"), R.drawable.triple_dice) .setOnMenuSelectedListener (object : OnMenuSelectedListener{ override fun onMenuSelected(index: Int) { fragmentManager?.beginTransaction()?.add(R.id.parentLayout, OneRollerFragemnt())?.commit() } } ) .setOnMenuStatusChangeListener(object : OnMenuStatusChangeListener { override fun onMenuOpened() { } override fun onMenuClosed() { circleMenu.visibility = View.GONE }
})`
Hope it will help you @AKTDev
Not able to perform onMenuSelectedListener on Sub Menu in Android Kotlin...