Questions tagged [android-jetpack]
Android Jetpack is a Google's set of libraries, tools and architectural guidance to build Android apps and provides common infrastructure code.
android-jetpack
3,090
questions
0
votes
3
answers
78
views
How to fill the remaining space in LazyColumn Jetpack Compose?
I have a LazyColumn that contains 3 items:
LazyColumn(
modifier = Modifier.fillMaxSize()
) {
item {
Text("Some text..."}
Text("Some text..."}
}
item ...
0
votes
1
answer
52
views
Why is the callback not happening?
I'm trying to update the value of showErrorMode with a callback passed to my Canvas composable, but the callback doesn't happen. I need this to show an adequate error to my user.
fun CameraPreview(
...
0
votes
1
answer
51
views
Android Jetpack Compose: How to expand a search icon into a searchbar overlaying on adjacent UI buttons?
I need a search icon and some UI buttons placed next to the search icon. When user clicks on the search icon I would like it to expand into a searchbar hiding the adjacent UI buttons.
The other ...
0
votes
1
answer
30
views
How to force a LazyColumn to have the max height rather than using scroll?
In my MainActivity I create this screen:
setContent {
MyTheme {
Surface(
modifier = Modifier.fillMaxSize()
) {
MainScreen()
}
}
}
That looks ...
0
votes
0
answers
23
views
How to Sync scroll between LazyColumn and LazyVerticalGrid in android Jetpack Compose?
For the design I am working on, it requires LazyColumn(used for stickyHeader) and LazyVerticalGrid.
Using the nestedScrollConnection and scroll states for respective composable, I was able to connect ...
0
votes
0
answers
29
views
How to scroll with Pivot using just Column Composable?
Trying to create a view for TV devices using Jetpack Compose that consists of a main Column which contains mutiple rows.
Is there some way to scroll through a Column composable whilst also maintaining ...
0
votes
0
answers
12
views
How to secure data stored in Android Jetpack AppSearch local storage
Right now we use room database to cache certain metadata in it for later access. To keep the database secure, we use SQLCipher(https://github.com/sqlcipher/sqlcipher-android) to encrypt the database.
...
0
votes
1
answer
58
views
How to enable Strong Skipping mode in Jetpack Compose? Using Groovy
I'm trying to optimize the performance of my Jetpack Compose UI by enabling Strong Skipping mode. I've read about the benefits of this mode, but I'm unsure how to actually enable it in my project. my ...
2
votes
1
answer
124
views
Text Composable with custom suffix on overflow
Is there any option to change default ellipsis suffix (TextOverflow.Ellipsis) with a custom one in multiline text using Jetpack Compose?
"Long-long-long
text to be ellipsized"
->
"...
3
votes
0
answers
74
views
Lazy Column with Scrollable Gradient background in Jetpack Compose
I'm working on a Jetpack Compose app having a Scaffold layout. My layout includes a title, a tab bar, and a LazyColumn. I want to create a gradient background that scrolls with the LazyColumn content ...
0
votes
0
answers
26
views
Is there a way we can use same navController in two different navHost in android jetpack for type safe navigation
I am using a bottom navigation in android jetpack
@Composable
fun BottomNavigationBar() {
val navController = rememberNavController()
var navigationSelectedItem by remember { mutableStateOf(...
1
vote
1
answer
50
views
First draggable item is not on top of other items in a Row while it's dragged on Jetpack Compose
I have a collection of five items, all of which are draggable. I want to achieve behavior in which the dragged item will overlap all the others. I tried changing the zIndex parameter but it didn't ...
1
vote
0
answers
37
views
How to keep the button over the other elements even if it is disabled in Jetpack Compose?
I have a screen where I display a list of items:
Scaffold(
content = {
//List of items
},
floatingActionButton = {
Button(
onClick = {
if (...
0
votes
1
answer
170
views
Kotlin Multiplatform + Jetpack Navigation + Android Studio Koala 2024.1.1 Patch 1 issues
I've started moving one of my older project (Java) to the KMP setup, my goal was to just move around the structure to KMP and slowly import Kotlin code from the shared folder into the androidApp.
I ...
0
votes
0
answers
17
views
Which resource qualifiers should I use for devices having similar screen sizes but showing views in different sizes?
I am working with views in xml in Android development, and I noticed that some devices with similar screen sizes (both in terms of DPI and pixels) show the UI of the app differently. For example, a ...