实现导航抽屉的菜单item点击水波纹
val outValue = TypedValue()
context.theme.resolveAttribute(android.R.attr.selectableItemBackground, outValue, true)
binding.navigationview.itemBackground = context.getDrawable(outValue.resourceId)
觉得有帮助的话点个关注吧😜
实现导航抽屉的菜单item点击水波纹
val outValue = TypedValue()
context.theme.resolveAttribute(android.R.attr.selectableItemBackground, outValue, true)
binding.navigationview.itemBackground = context.getDrawable(outValue.resourceId)
觉得有帮助的话点个关注吧😜