Arun Joseph
02/03/2022, 9:54 AM@Before
composeTestRule.setContent {
MainNavHost()
}
How can I finish the activity completely in @After
I tried
composeTestRule.activity.finish()
But that hangs forevermattinger
02/03/2022, 3:54 PMTolriq
02/03/2022, 4:18 PMmarios proto
02/03/2022, 4:20 PMViewTreeLifecycleOwner not found from androidx.coordinatorlayout.widget.CoordinatorLayout
Is this a known issue?
Any [G] here that might help perhaps? I can see similar issues on issue tracker, but all recommended that appcompat 1.3+ would fix this, but I am seeing in on 1.41.Sweety Bertilla
02/03/2022, 4:52 PMModifier
, text styles
and drawables
in composeStephen Vinouze
02/03/2022, 5:19 PMrotationMatrix
method where you can specify your anchor point but I don't think it's supported by Compose yet. Am I missing something?Joseph Hawkes-Cates
02/03/2022, 10:00 PMMarcin Wisniowski
02/03/2022, 10:36 PMLazyColumn
, which is currently not a built-in functionality (issue: https://issuetracker.google.com/issues/150812265). How are other people solving this? No animation is quite jarring and waiting a few months for an official implementation doesn't really work.brabo-hi
02/04/2022, 4:11 AMBoxWithConstraints {
Image(painter = painterResource(id = R.drawable.image), contentDescription = null)
}
how can i make the image width == parent's width
but the height to keep a constant ration as the original image?Slackbot
02/04/2022, 5:32 AMjames
02/04/2022, 6:00 AMModalBottomSheetLayout
is popped too, and I'm trying to avoid that behaviourtheapache64
02/04/2022, 6:34 AMComposeTestRule#advanceTimeBy
method. It doesn’t work as expected with animations.
▶️ Here’s more details : https://stackoverflow.com/questions/70982285/compose-advancetimeby-doesnt-work-with-animation.rsktash
02/04/2022, 6:41 AMSpacedBy(4.dp) { Content() }
for ColumnScope
and RowScope
?Colton Idle
02/04/2022, 7:02 AMZoltan Demant
02/04/2022, 9:20 AMSaveableStateHolder
fail to save/restore the state of a LazyList
? Ive verified that my keys are correct, and Ive stripped out any surrounding logic, yet it doesnt do its thing.Lukasz Burcon
02/04/2022, 9:30 AMButter.Flock
02/04/2022, 11:51 AMPager
in Compose that wraps its content (so the pager has the height of the largest child). I used Horizontal Pager from Accompanist, however since it is based on LazyList
only the current item is measured and used for height calculation. If now the children have different heights this causes the content below the pager to jump around see video.
So far my ideas:
• Forcing the LazyList
to measure/draw also items that are not visible (this is possible for RecyclerView), so far I could not find anything in the implementation source code to enable this behaviour. But maybe one of you has an idea?
• Using Row
instead of LazyList
. I have an PoC for this, but it resulted in a lot of code since I had to implement Snapper for normal Rows and currently it is still a little bit buggy.
I’m happy for every hint on this topic 🙂Colton Idle
02/04/2022, 12:13 PMmattinger
02/04/2022, 3:10 PMRavi
02/04/2022, 4:57 PMLukasz Kalnik
02/04/2022, 6:56 PMAsyncImage
in coil-compose?Marcin Wisniowski
02/04/2022, 11:28 PMRob
02/04/2022, 11:28 PMjames
02/04/2022, 11:35 PMAyfri
02/05/2022, 12:15 AMenabled = array.isEmpty()
but the problem is that the button enabled state is only updated after the array has changed
Like if I have a field errored, the array has correctly a new value inside, but the button is only updated when the list is updated after this (like adding/removing an element), not directly when a new element is added to arraychansek
02/05/2022, 3:28 AMopen class A(
open val a: Int,
val b: String = "Something"
)
data class B(
override val a: Int = 20,
val c: Int = 30
) : A(a)
I have a composable which is dependant upon class B
.
@Composable
fun BCard(b: B) {
// Compose something
}
BCard
recomposes when a
nad c
are changed, but not when b
is changed. How can I solve this?theapache64
02/05/2022, 8:41 AMColor.White
doesn’t work? but other colors like Color.Red
or Color.Blue
works! 🧵Arpit Shukla
02/05/2022, 3:10 PMbitkiller
02/05/2022, 4:20 PMMehdi Haghgoo
02/05/2022, 5:22 PMMehdi Haghgoo
02/05/2022, 5:22 PMAdam Powell
02/05/2022, 5:38 PM