David Edwards
07/02/2021, 9:01 PMYASAN
07/03/2021, 12:03 AMDialog
just fill out the whole screen size unlike the previous versions where they just had the proper dialog size by default. I am not sure if its a bug or a feature but I am not sure what is the best way of making the Dialogs have the proper size again? I can add padding around my inside my dialog to make it look better but a static dp padding would not do the same thing since the dialog will still look super large on Tablets.mattinger
07/03/2021, 1:19 AMBerkeli Alashov
07/03/2021, 3:11 AMdetectTransformGestures
? Like onDragEnd
of detectDragGesture
. I need to reset transformations after user stops the gestures.Slackbot
07/03/2021, 9:00 AMgeorgiy.shur
07/03/2021, 9:09 AMSurface
doesn’t allow click events to come through even if clickable
is not set. Is it possible to propagate its clicks to parent composable?MBegemot
07/03/2021, 10:27 AMRavi
07/03/2021, 1:01 PMcompileSDkVersion 29
, after upgrading compose to rc01
we are facing this issue 🧵Se7eN
07/03/2021, 4:18 PMFudge
07/03/2021, 5:08 PMrememberSaveable
is supposed to persist a value across process death. However, I've tried killing the app and restarting it in multiple ways (even cases as simple as 'Live Edit of Literals'!), and every time the state is not persisted. Am I not understanding what rememberSaveable
is actually supposed to do?
A simple example:
var enabled by state { false }
Button(onClick = { enabled = !enabled }) {
Text(text = if (enabled) "enabled" else "disabled")
}
When the app is started, enabled
should have the value it had when the app last closed, but that is not the case. It is not 'remembered' or 'saved', it is forgotten and lost.Chuck Stein
07/03/2021, 6:59 PMColton Idle
07/03/2021, 7:58 PMRob
07/03/2021, 10:14 PMAndre Classen
07/04/2021, 12:33 AMLazyColumn
?Gaurav
07/04/2021, 11:24 AMSololo
07/05/2021, 6:34 AMninadmg
07/05/2021, 9:30 AMZun
07/05/2021, 11:44 AMiamthevoid
07/05/2021, 12:29 PMonDestroyView
for composable? For example here listed example when viewModel value assigning as default parameter in composable function by viewModel()
call. If i understand correct this factory creates (or returns) view model from activity or fragment scope.
But what if i develop single activity app with huge number of features on billions screens? Should i use activity view model scope or i must include fragments to my code or there is better way to handle memory in compose?julioromano
07/05/2021, 12:34 PMBasicTextField
the software keyboard closes whenever there’s a configuration change (rotation, dark mode switch, etc.).
I tried fiddling with the windowSoftInputMode
activity manifest attribute but to no avail.
Is this the intended behavior? Is there any way to change it (apart from disallowing any configuration change which is not possible in my case)?
PS: The text field also happens to loose focus during the config change.Wojciech Rozwadowski
07/05/2021, 12:48 PMshrinkResources = true
set my resources as unused when I use it in that way:
@Composable
private fun SomeIcon() = `Icon(painter = painterResource(id = R.drawable.ic_some_awesome_icon), …)`
I don't want to use keep
for many of randomly shrinked resources and I prefer to keep shrinkResources on. Any suggestions?Vitaliy Zarubin
07/05/2021, 3:00 PMnglauber
07/05/2021, 3:06 PMScreenA
which is using MyViewModel
instantiated using hiltViewModel()
function.
ScreenA
calls ScreenB
. I want to share MyViewModel
between both screens. However, I’m popping ScreenA
when I’m calling ScreenB
.
Is there a way to do this without create a custom ViewModelStoreOwner
? 🤔
cc: @Ian LakeSparsh Dutta
07/05/2021, 4:17 PMAlex
07/05/2021, 5:31 PMdimsuz
07/05/2021, 5:32 PMLazyColumn
and I need to do certain actions based if user has scrolled up or down for a certain threshold. What are my best options here?
• Use snapshotFlow
to watch LazyColumnState
changes, collect delta, act accordingly?
• I've also found pointerInput
+ detectDragGesture
, will it work with LazyColumn
, should I use it?
• Something else?Neil
07/05/2021, 5:36 PMandrew
07/05/2021, 8:13 PMCicero
07/05/2021, 8:48 PMTash
07/05/2021, 10:12 PMgraphicsLayer
+ shadowElevation
🧵 (using rc01)Tash
07/05/2021, 10:12 PMgraphicsLayer
+ shadowElevation
🧵 (using rc01)Andrey Kulikov
07/06/2021, 10:19 AMTash
07/06/2021, 5:33 PM.shadow()
modifier just creates a feathered shadow around the Box
. The shadowElevation
in graphicsLayer
is what produces the skewed shadow + artifacts, regardless of the .shadow()
modifierAndrey Kulikov
07/06/2021, 6:04 PMTash
07/06/2021, 6:15 PMBox(
modifier = Modifier
.wrapContentSize()
.graphicsLayer {
rotationX = /** **/
rotationY = /** **/
cameraDistance = /** **/
}
.graphicsLayer {
shadowElevation = elevation
shape = RoundedCornerShape(6.dp)
},
)
wondering why/how this separation works... 🤔 is this how the API is supposed to be used for this use case?Andrey Kulikov
07/06/2021, 6:50 PMTash
07/06/2021, 6:59 PM