Ravi
05/18/2021, 11:12 PMlifecycleIsResumed
check is added to discard duplicated navigation events. Is this change required as I've followed similar pattern?Colton Idle
05/18/2021, 11:59 PMIan Lake
05/19/2021, 12:44 AMarguments?.getString(KEY_ROUTE)
- it is just destination.route
. It also means that Navigation Compose gained support for new functionality added to Navigation including multiple back stacksColton Idle
05/19/2021, 1:20 AMColton Idle
05/19/2021, 2:12 AMTin Tran
05/19/2021, 4:31 AMrememberNavController()
with navigation 2.4.0-alpha01
and 1.0.0-beta07
It’s throwing java.lang.NoSuchMethodError: No interface method startReplaceableGroup(ILjava/lang/String;)V in class Landroidx/compose/runtime/Composer;
Does anyone know what am I missing?therealbluepandabear
05/19/2021, 5:11 AMiamthevoid
05/19/2021, 6:22 AMisSystemInDarkTheme()
resultTlaster
05/19/2021, 6:26 AMandroidx.emoji2:emoji2
, but it only support View based TextView
, is there any chance to get Compose support?Marko Novakovic
05/19/2021, 6:55 AMaccompanist-coil
to load images, how can I get loaded image back? same as you can with Coil
:
val request = ImageRequest.Builder(context)
.data("<https://www.example.com/image.jpg>")
.target { drawable ->
// Handle the result.
}
.build()
or add Target
on Glide?Samir Basnet
05/19/2021, 7:06 AMRavi
05/19/2021, 7:59 AMallan.conda
05/19/2021, 8:05 AMiamthevoid
05/19/2021, 8:16 AMisSystemInDarkTheme()
sources [1]:
but when i try to change uiMode [2]
i get nothing [3]
If i open Configuration
sources i see that uiMode
just public int
so (theoretically) it must changes and reads as expected but it doesn’tMarko Novakovic
05/19/2021, 9:34 AMPalette
API in Compose. it won’t generate palette for given image, same code works in old View System code.
Palette.from(bitmap)
.setRegion(0, 0, bitmap.width, 50) // arbitrary 50 height, doesn't matter the number it never works
.maximumColorCount(3)
.generate { palette -> ...}
am trying to capture top region of the given image and extract dominant colour in that regionTlaster
05/19/2021, 9:37 AMLazyColumn
renders blank item content after beta07? sample code and reproduce step in threadLucien Guimaraes
05/19/2021, 1:18 PMms
05/19/2021, 1:20 PM7.1.0-alpha01
Compose 1.0.0-beta07
Hilt 2.35.1
Daniele B
05/19/2021, 1:37 PMjava.lang.NoSuchMethodError: No interface method startRestartGroup(ILjava/lang/String;)Landroidx/compose/runtime/Composer; in class Landroidx/compose/runtime/Composer; or its super classes (declaration of 'androidx.compose.runtime.Composer' appears in /data/app/~~yEhlq19loSoeWoeZbQDL0A==/eu.baroncelli.dkmpsample-klwx0P95NjZtTjQ6GrJhPw==/base.apk)
at androidx.activity.compose.BackHandlerKt.BackHandler(BackHandler.kt:77)
these are my Android dependencies:Zhelyazko Atanasov
05/19/2021, 3:09 PMShakil Karim
05/19/2021, 3:49 PMTimilehin Aregbesola
05/19/2021, 3:57 PMBradleycorn
05/19/2021, 4:16 PMLinearGradient
for the background on a BoxWithConstraints
where the Box size is fillMaxSize()
so it may be different sizes depending on where it’s used. So far I have it rendering as seen in the attached designer screen shot, which is not quite what I want. I’m trying to get it so that the “line” between red and blue always goes from the bottom left corner to the top right corner, no matter the shape of the Box. Any idea how I can achieve that? My current code is posted as a reply.grandstaish
05/19/2021, 4:34 PMAndré Thiele
05/19/2021, 4:52 PMFunkyMuse
05/19/2021, 4:55 PMAman Kapoor
05/19/2021, 5:03 PMalorma
05/19/2021, 5:36 PMHomeScreen
with BottomNavigation with 3 items.
Also, i would want other screens without BottomNavigationScott Kruse
05/19/2021, 5:37 PMalorma
05/19/2021, 6:52 PMclip()
modifier, but then elevation is lostalorma
05/19/2021, 6:52 PMclip()
modifier, but then elevation is lostBradleycorn
05/19/2021, 7:07 PMgraphicsLayer
modifier so that you can apply clipping and elevation? Kind of like:
modifier = Modifier
.fillMaxWidth()
.padding(32.dp)
.border(width = 4.dp, color = red700, CutCornerShape(32.dp))
.graphicsLayer {
shadowElevation = 8.dp.toPx()
shape = CutCornerShape(32.dp)
clip = true
}
Abhishek Dewan
05/20/2021, 2:11 AM