humbledroid
04/21/2022, 1:14 PMDropDownMenu, that it uses Column, thus cannot have huge number of items, without allowing it to populate all items at once, and this will lead to frame drop and crashes. DropDownMenu as of today cannot leverage LazyColumn as intrinsic size for Subcomposelayouts is not yet supported, and fixed height width cannot be given to the LazyList in DropDownMenu
because of the use case.
The use case is to show list of countries and choose one of them, and for that I am using the DropDownMenu but as the size of countries list is enough to make it draw after a few frame drop.
I found an issues similar to this, ISSUETRACKER and is closed as it works as intended, because this is not meant for long lists, i guess. maybe a time for LazyDropDownMenu
I tried replacing the Column with LazyColumn but that would not work because of the intrinsic measurements , and it works perfectly fine, when the height and width is supplied via modifier to LazyColumn .Albert Chang
04/21/2022, 1:47 PMLazyColumn to calculate the desired width given that it doesn't measure all the items at once?humbledroid
04/21/2022, 2:24 PMRecyclerView and PopupView 's width and height used to served as intrinsic measures for the childs and thus it worked, and worked as expectedAdam Powell
04/21/2022, 2:37 PM