How does SelectionContainer support long pressing to select all by default
SelectionContainer { Text( text = valueText, style = if (lowKey) MaterialTheme.typography.bodyMedium else MaterialTheme.typography.bodyLarge, lineHeight = MaterialTheme.typography.bodyMedium.lineHeight, color = if (lowKey) MaterialTheme.colorScheme.onSurfaceVariant else MaterialTheme.colorScheme.onBackground, maxLines = 5, overflow = TextOverflow.Ellipsis, ) } The above code, if the text content is relatively long, such as 200 characters, I will only select a small portion of the text […]
How does SelectionContainer support long pressing to select all by default
SelectionContainer { Text( text = valueText, style = if (lowKey) MaterialTheme.typography.bodyMedium else MaterialTheme.typography.bodyLarge, lineHeight = MaterialTheme.typography.bodyMedium.lineHeight, color = if (lowKey) MaterialTheme.colorScheme.onSurfaceVariant else MaterialTheme.colorScheme.onBackground, maxLines = 5, overflow = TextOverflow.Ellipsis, ) } The above code, if the text content is relatively long, such as 200 characters, I will only select a small portion of the text […]
Remove the padding from compose Tab in ScrollableTabRow
My requirement is to show the tab items and the indicator below them. The indicator is such that it below the text and cover extra space before and after the text.
requirement
Remove the padding from compose Tab in ScrollableTabRow
My requirement is to show the tab items and the indicator below them. The indicator is such that it below the text and cover extra space before and after the text.
requirement
Track if composable is in center of screen
Hello everyone I’m trying to track whether a composable is in the center of the screen.
Track if composable is in center of screen
Hello everyone I’m trying to track whether a composable is in the center of the screen.
Save composable as image file with transparent background in Jetpack Compose
I’m building a functionality of sharing part of the screen as an image file. Here is a reference to docs:
https://developer.android.com/develop/ui/compose/graphics/draw/modifiers#composable-to-bitmap
Release build (R8 enabled) Typesafe Navigation, Kotlinx Serialization and Inner class – Decompiled Class: INSTANCE MISSING
I am building an app using type safe navigation.
Release build (R8 enabled) Typesafe Navigation, Kotlinx Serialization and Inner class – Decompiled Class: INSTANCE MISSING
I am building an app using type safe navigation.
VerticalPager in Jetpack Compose keeps scrolling without stopping between pages
I’m building a vertical video feed in Jetpack Compose using VerticalPager to display a list of video URLs. I want each video to play only when the corresponding page is visible. However, I am facing an issue where the pager keeps scrolling continuously without stopping, and it resets back to page 0 after scrolling.