Ink
07/28/2021, 3:53 PMLazyVerticalGrid
?Shakil Karim
07/28/2021, 4:01 PMgrandstaish
07/28/2021, 4:14 PMfindByText_merged_fails
). Before this change, the test here would match the Box
successfully and pass. What’s the new correct way to match that Box?Raw Hasan
07/28/2021, 4:19 PMJeff
07/28/2021, 4:30 PMSe7eN
07/28/2021, 5:07 PMAnna-Chiara Bellini [G]
07/28/2021, 5:18 PMAlejandro Rios
07/28/2021, 5:21 PMhttps://youtu.be/-8tSZr7iMcw▾
Abdalla Hassanin
07/28/2021, 5:41 PM//take screenshot of the view added as an input argument
fun takeScreenShot(view: View) : Bitmap {
val bitmap = Bitmap.createBitmap(
view.width,
view.height,
Bitmap.Config.ARGB_8888
)
val canvas = Canvas(bitmap)
view.draw(canvas)
return bitmap
}
What is the equivalent of this in Jetpack compose?Nipun Rajput
07/28/2021, 5:47 PMAppcompatActivity
instead of ComponentActivity
and Theme.MaterialComponents.DayNight.DarkActionBar
instead of Theme.Material.Light.NoActionBar
. Also there is reason behind using I'm using theme and Activity because I am also using ReviewManager which takes AppcompatActivity reference. Any help on this will appreciated, desired output pic is attachedVsevolod Ganin
07/28/2021, 6:45 PMMichal
07/28/2021, 8:09 PMLandry Norris
07/28/2021, 8:46 PMColton Idle
07/28/2021, 9:49 PMpaddp
compose live template to work?
https://developer.android.com/jetpack/compose/tooling#live-templates
It never does anything for me. While comp
works as a live template. I want to file a bug, but I think I'm just invoking it incorrectly?Berkeli Alashov
07/28/2021, 10:20 PMandroidx.navigation:navigation-compose:2.4.0-alpha05
seems to have bug/weird behavior after upgrading from 2.4.0-alpha04
.
I don't know what exactly is causing this, but It can be triggered when using with bottom nav bar like shown here.
Problem:
When re-selecting the same tab (i.e clicking already selected tab), the screen becomes empty. It doesn't happen when current destination is the root graph's startDestination.
I first noticed this on my app, then confirmed it by trying it on tivi and upgrading nav compose to 2.4.0-alpha05
.
Screencast: https://photos.app.goo.gl/RPur9JpEZwS8srt28ursus
07/29/2021, 12:32 AMgabriel dean
07/29/2021, 1:52 AMKefas
07/29/2021, 4:04 AMclass ChildState {
// ....
companion object {
val Saver: Saver<ChildState,*> = // Has been defined
}
}
class ParentState(val childState: ChildState) {
// ...
companion object {
val Saver: Saver<ParentState,*> = // How to save the childState using ChildState.Saver?
}
}
Tim Malseed
07/29/2021, 4:31 AMalorma
07/29/2021, 4:47 AMappCompat
and `material`dependencies, usinig just a ComponentActivity
from androidx.activity:Activity:1.3.0
, but i receive a crash:
Process: com.alorma.composedrawer, PID: 13088
java.lang.AbstractMethodError: abstract method "void androidx.lifecycle.DefaultLifecycleObserver.onCreate(androidx.lifecycle.LifecycleOwner)
alorma
07/29/2021, 5:02 AMComponentActivity
with no theme applied manifest.. and without any app compat or material.. it adds a toolbar... how can it be removed?alorma
07/29/2021, 5:21 AMaccompanist
system ui controller lib, following this:
https://google.github.io/accompanist/systemuicontroller/
But i found that on light theme icons are not show :SAfzal Najam
07/29/2021, 5:23 AMMd. Nazmun Sadat Khan
07/29/2021, 5:48 AMColton Idle
07/29/2021, 5:58 AMBottomNavigation(
modifier = Modifier.navigationBarsPadding(),
which "works" so that my bottom bar isn't behind the system nav, but now I'm seeing elevation like my bottombars height wasn't actually changed. Still working on a minimal repro (happening in my actual project currently), but has anyone encountered this before?
Before and after attachedallan.conda
07/29/2021, 6:58 AMMichał Diner
07/29/2021, 7:44 AMFanilog
07/29/2021, 8:13 AMKarthi
07/29/2021, 8:31 AMrouteX?argA={argA}&ArgB={ArgB}
. When I query the BackStackEntry from NavController, I would like to use navController.getBackStackEntry("`routeX` ") without optional param as optional params can grow in future. But current api fails as it expects optional param as well. Any reason why the route should match optional params on query?Rafs
07/29/2021, 8:36 AMRafs
07/29/2021, 8:36 AMTin Tran
07/29/2021, 8:38 AMRafs
07/29/2021, 8:41 AMCLOVIS
07/29/2021, 8:51 AMLandry Norris
07/29/2021, 2:46 PMRafs
07/29/2021, 3:11 PMCLOVIS
07/29/2021, 7:56 PM.d
, auto-complete, press enter, and it will do the import itself. It works for everything.Rafs
07/29/2021, 8:18 PMCLOVIS
07/29/2021, 8:45 PMTin Tran
07/30/2021, 3:03 AMRafs
07/30/2021, 1:10 PMTin Tran
07/30/2021, 1:12 PM