Sudeep Bhowmick
06/22/2021, 10:05 PMCould not resolve androidx.compose:compose-compiler:1.0.0-beta09.
> Could not get resource '<https://s3.amazonaws.com/tgl.maven/androidx/compose/compose-compiler/1.0.0-beta09/compose-compiler-1.0.0-beta09.pom>'.
> Could not GET '<https://s3.amazonaws.com/tgl.maven/androidx/compose/compose-compiler/1.0.0-beta09/compose-compiler-1.0.0-beta09.pom>'. Received status code 403 from server: Forbidden
Seems strange since this is a public beta I think..any pointers?tad
06/23/2021, 12:10 AMImeAction.Next
. Should tapping the IME action just do the right thing and focus the next field, or do I need to set this up manually with FocusRequester and KeyboardActions?mattinger
06/23/2021, 12:51 AMjames
06/23/2021, 5:10 AMlhwdev
06/23/2021, 6:14 AMLaunchedEffect
not shown in the logcat? Normally errors is not caught so default thread exception handler works.
It still freezes the UI, making it a lot harder to debug... (compose 1.0.0-beta09)shruti.d.bansal
06/23/2021, 7:04 AMLaodice Melliti
06/23/2021, 8:15 AMgeorgiy.shur
06/23/2021, 10:33 AMComposeView
using interop. I have a custom view which extends AbstractComposeView
, then I’m trying to add this view programmatically with listItem.addView(myComposeView)
inside the onBindViewHolder
method of RV adapter (inside one of the items). It crashes with java.lang.IllegalStateException: ViewTreeLifecycleOwner not found from id/listItem
.
I’ve tried to debug it and I found that it tries to recursively find a parent with android.R.id.content
, but the problem with RecyclerView is that sometimes it returns null
for its children’ getParent()
, because they’re not yet attached to viewholder. So the parent is null means it doesn’t have ViewTreeLifecycleOwner
. Is it a bug or expected behavior? Should I do it differently? Is there a way to work around it?Nipun Rajput
06/23/2021, 11:38 AMLazyColumn
and LazyRow
recent beta09
compose migration? I am facing hard to scroll when migrated to compose beta 09mattinger
06/23/2021, 1:57 PMeneim
06/23/2021, 2:15 PMWrappedComposition
will dispose
when the lifecycle is destroyed (lifecycle event ON_DESTROY
is observed). Considering that the onDestroy callback of an Activity may not be called in some critical situations, I wonder why the ON_STOP
event is not a better choice? (Not sure if it is appropriate to ping @Ian Lake for this question …)Colton Idle
06/23/2021, 2:48 PMmiqbaldc
06/23/2021, 2:49 PMJoey
06/23/2021, 3:01 PMFunkyMuse
06/23/2021, 3:16 PMjava.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
Marko Novakovic
06/23/2021, 3:44 PMhilt-navigation
documentation.
inline fun <reified VM : ViewModel> hiltViewModel()
and
internal fun <VM : ViewModel> hiltViewModel(
kClass: KClass<VM>,
backStackEntry: NavBackStackEntry
)
and
hiltNavGraphViewModel()
documentation says that it gets or creates ViewModel
scoped to the current navigation graph. as far as I know and what I see in code if current ViewModelStoreOwned
is NavBackStackEntry
, which composables in graph are, ViewModel
is scoped to NavBackStackEntry
.
hiltViewModel<HomeViewModel>(backStackEntry)
and
hiltViewModel<HomeViewModel>()
should be the same right? it scopes ViewModel
to current back stack entry?FunkyMuse
06/23/2021, 3:47 PMcollectAsLazyPagingItems()
respect something like
flow.flowWithLifecycle(lifecycleOwner.lifecycle, Lifecycle.State.STARTED)
or the data is updated even when the UI isn't in started mode?Lucien Guimaraes
06/23/2021, 4:46 PMBasicTextField
, when it's being focused I want to erase the text. But it's only working when the focus occur after a click outside the innerTextField()
from the decorationBox
, as you can see in the following video. Any idea why it's happening ?Prafull M
06/23/2021, 4:56 PMBoris Kachscovsky
06/23/2021, 5:23 PMRavi
06/23/2021, 9:22 PMCircleCropTransformation
for glide lib mentioned in the accompanist documentation.
import androidx.compose.foundation.Image
import com.google.accompanist.glide.rememberGlidePainter
Image(
painter = rememberGlidePainter(
request = "<https://picsum.photos/300/300>",
requestBuilder = {
transformations(CircleCropTransformation())
},
),
contentDescription = stringResource(R.string.image_content_desc),
)
Neal Sanche
06/24/2021, 3:31 AMkevindmoore
06/24/2021, 5:18 AMKunal Raghav
06/24/2021, 9:33 AMFunkyMuse
06/24/2021, 11:30 AMiamthevoid
06/24/2021, 11:39 AMFlow
emits the concrete value. Is it correct to do that in compose or i must think different? If correct, what is the best way to do that?julioromano
06/24/2021, 1:19 PM@Composable
APIs, is it preferable to have a default onClick
param as an empty lambda (onClick: () -> Unit = {}
) or as a nullable function (onclick: (() -> Unit)? = null
)? Are there any pros and cons?nacholopez
06/24/2021, 2:05 PMChristopher Elías
06/24/2021, 3:24 PMtylerwilson
06/24/2021, 4:11 PMtylerwilson
06/24/2021, 4:11 PMAdam Powell
06/24/2021, 7:01 PMmain
development branchtylerwilson
06/24/2021, 7:02 PM