Emil Lahtinen
06/08/2021, 1:21 PMRichard Z
06/08/2021, 1:38 PMcuongtd
06/08/2021, 1:44 PMVsevolod Ganin
06/08/2021, 2:27 PMAnimatedContent
in a dev branch and I have a question: what if I can’t map targetState
to actual content statically? Seems like I need to store map of states to content to be able to map any targetState
to some content at any time, but that’s not always possible. Let’s say I have a screen backstack (a list, basically). Then my targetState
would be the last index in that list. And let’s say I’m popping the front screen from backstack. Then the index to that screen is no longer valid and I can’t display exit animation for it. How to approach this?alorma
06/08/2021, 2:41 PMdimsuz
06/08/2021, 2:41 PMsheetPeekHeight
based on a parent layout? For example if I have a column with a few composables and I want the BottomSheet in collapsed state to be just below the last one of them, how would I go about this? I thought about a custom Layout
modifier to measure children height, but how do I then pass this into sheetPeekHeight
?Akram Bensalem
06/08/2021, 3:04 PMBradleycorn
06/08/2021, 4:11 PMBottomSheetScaffold
, it appears that the PaddingValues
that get passed to the main content composable always match the value of the peekHeight
that is set on the scaffold. Using that, we can setup our screen so that we can scroll the main content area enough to see all of the content when the sheet is collapsed
. But in my case, I’d like to also be able to scroll to see all of the main content even when the sheet is expanded
. Is there some way I can accomplish that?aniruddha dhamal
06/08/2021, 4:39 PMEric Ampire [MOD]
06/08/2021, 5:29 PMTabRow
in my app and I have noticed that when there's more than 5 Tabs
, the TabRow
isn't scrollable, so how can I do in order to have a scrollable TabRow as in playstore
I tried to use LazyRow
inside the TabRow
but it doesn't work as expectedSlackbot
06/08/2021, 7:03 PMCicero
06/08/2021, 8:19 PMHatice Sarp
06/08/2021, 8:22 PMDominaezzz
06/08/2021, 8:50 PMval text = buildAnnotatedString {
appendInlineContent("image")
append(" is a person.")
}
val person = InlineTextContent(
placeholder = Placeholder(1.em, 1.em, PlaceholderVerticalAlign.Center),
children = {
Image(Icons.Filled.Person)
}
)
Text(text, inlineContent = mapOf("image" to person))
I think InlineTextContext
alignment is broken and want to see if it's desktop only.brandonmcansh
06/09/2021, 12:24 AMNipun Rajput
06/09/2021, 3:42 AMModalBottomSheet
when dragging down without collapse at half?james
06/09/2021, 4:01 AMHatice Sarp
06/09/2021, 8:44 AMEquilat
06/09/2021, 8:44 AMDougie
06/09/2021, 9:22 AMaccompanist-coil
into my project, then i get the error as below. when i remove accompanist-coil
it be normal. https://github.com/google/accompanist/blob/main/coil/src/main/java/com/google/accompanist/coil/Coil.kt source code not impact material.Icon. any help?
java.lang.NoSuchMethodError: No static method tint-DxMtmZc$default(Landroidx/compose/ui/graphics/ColorFilter$Companion;JLandroidx/compose/ui/graphics/BlendMode;ILjava/lang/Object;)Landroidx/compose/ui/graphics/ColorFilter; in class Landroidx/compose/ui/graphics/ColorFilter$Companion; or its super classes (declaration of 'androidx.compose.ui.graphics.ColorFilter$Companion' appears in /data/app/~~rC5M8DLnJ6EY6tCg5iwZHA==/-5G-RVV84VHN6mftce6JYCQ==/base.apk) at androidx.compose.material.IconKt.Icon-ww6aTOc(Icon.kt:119)
Piotr Prus
06/09/2021, 9:25 AMmeasure strategy
loop in my logs and the view is never shown. Unfortunately, the log is not pointing to anything, so I do not know which part has an issue with measuring. Any idea? I will try to turn off component by component to find the one that cause this loop.Eric Ampire [MOD]
06/09/2021, 10:40 AMLazyVerticalGrid
inside the HorizontalPager
provided by accompanist like this
HorizontalPager(state = pagerState) {
LazyVerticalGrid(
state = scrollState,
contentPadding = PaddingValues(10.dp),
cells = GridCells.Fixed(2),
content = {
items(TestData.Product.data) { product ->
ProductView(product = product)
}
}
)
}
After doing this, the list scrolls with difficultyShakil Karim
06/09/2021, 10:49 AMmmaillot
06/09/2021, 11:46 AMpointerInteropFilter
but the onClick
method is not called anymore 😞 I tried with pointerInput
but the image is not resized, it’s only a circle (ripple effect?) which is resized... Do you have simple code sample to do an animation on user click ? (code in thread)Michal Klimczak
06/09/2021, 2:17 PMmiqbaldc
06/09/2021, 2:41 PMConstraintLayout
integration with Jetpack Compose?
or should we use something like FlowLayout?ms
06/09/2021, 3:12 PMjuliocbcotta
06/09/2021, 3:23 PMText(
text = text,
modifier = Modifier.padding(top = 12.dp),
textStyle = style,
)
I get the error
None of the following functions can be called with the arguments supplied:
public fun Text(text: AnnotatedString, modifier: Modifier = ..., color: Color = ..., fontSize: TextUnit = ..., fontStyle: FontStyle? = ..., fontWeight: FontWeight? = ..., fontFamily: FontFamily? = ..., letterSpacing: TextUnit = ..., textDecoration: TextDecoration? = ..., textAlign: TextAlign? = ..., lineHeight: TextUnit = ..., overflow: TextOverflow = ..., softWrap: Boolean = ..., maxLines: Int = ..., inlineContent: Map<String, InlineTextContent> = ..., onTextLayout: (TextLayoutResult) -> Unit = ..., style: TextStyle = ...): Unit defined in androidx.compose.material
public fun Text(text: String, modifier: Modifier = ..., color: Color = ..., fontSize: TextUnit = ..., fontStyle: FontStyle? = ..., fontWeight: FontWei
Any way to fix it ?dimsuz
06/09/2021, 3:56 PMprogress
just switches between 3 states exactly how I'd expect it to switch.
Please, Compose devs, keep this up, looks like you have a great team there!Daniel Candeias
06/09/2021, 4:22 PMLazyVerticalGrid
?
LazyVerticalGrid(
cells = GridCells.Fixed(4)
) {
itemsIndexed(data) { row, dataItem ->
CustomComposedView(dataItem)
}
}
Expected behavior for 6 elements:
x x x x
x xDaniel Candeias
06/09/2021, 4:22 PMLazyVerticalGrid
?
LazyVerticalGrid(
cells = GridCells.Fixed(4)
) {
itemsIndexed(data) { row, dataItem ->
CustomComposedView(dataItem)
}
}
Expected behavior for 6 elements:
x x x x
x xRavi
06/09/2021, 8:14 PMAlbert Chang
06/09/2021, 10:51 PMLazyVerticalGrid
. Consider using LazyColumn
.Ravi
06/09/2021, 11:16 PM