https://kotlinlang.org logo
v

Vivek Sharma

11/15/2020, 11:24 AM
What can be this composable, it has fixed height, not expandable (adding task in Google Tasks App)? I have used BottomDrawerLayout , but it doesnt let fix height , any idea? 🤔 Is it something similar to Crane app?
s

Se7eN

11/15/2020, 12:14 PM
It's a bottom sheet
1
v

Vivek Sharma

11/15/2020, 2:51 PM
@Se7eN I implemented what you told first to build a simple todo app , I will show you
s

Se7eN

11/15/2020, 2:59 PM
So bottom sheet didn't work?
v

Vivek Sharma

11/15/2020, 3:02 PM
how to record emulator screen, it just flicker when I rouch from mouse pointer
I dont know , I will show you
s

Se7eN

11/15/2020, 3:03 PM
Yeah same here I guess it's a bug
v

Vivek Sharma

11/15/2020, 3:03 PM
I will show ss
wait a sec
🆗 2
But this is different
s

Se7eN

11/15/2020, 3:06 PM
Is this BottomDrawerLayout?
v

Vivek Sharma

11/15/2020, 3:09 PM
yes
this is bottomDrawer layout
in that google task thing
I am asking what that composable can be? because I tried fixing BottomDrawerLayout max height, but cant, and the soft keyboard it is appearing whole below that composable
s

Se7eN

11/15/2020, 3:11 PM
I haven't used bottom sheets but the composables are something like
BottomSheetScaffold
,
ModalBottomSheet
or might be a different name I don't remember
The
BottomDrawerLayout
is like the navigation drawer but opens from the bottom. So you need a bottom sheet instead of a bottom drawer
v

Vivek Sharma

11/15/2020, 3:19 PM
Yes there is
BottomSheetScaffold
, but it is like a simple sheet and doest overlay other layout like
BottomDrawerLayout
, take a look https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#bottomsheetscaffold
v

Vivek Sharma

11/15/2020, 3:22 PM
There is something
ModalBottomSheetLayout
, I found in docs, so I have to try it and tell, but I guess
yeah I was looking into same
s

Se7eN

11/15/2020, 3:23 PM
Yeah that'll do
v

Vivek Sharma

11/15/2020, 3:23 PM
okay I will try and tell
👍 1
27 Views