Issue
I want to make a Bottom naviation in Android Jetpack compose but in every source I found, The navigation built with compose is normal, flat one Just like This,
The Point is I could not find a way to make somethin like this
How can I do just a thing ? Thanks
Solution
Just use clip
Modifier
and add RoundedCornerShape
with the top corners , here is sample code
BottomNavigation(
backgroundColor = colorResource(id = R.color.black),
modifier = Modifier.fillMaxWidth().clip(RoundedCornerShape(15.dp, 15.dp, 0.dp, 0.dp))
)
Answered By - Manohar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.