14,265 questions
0
votes
0
answers
38
views
How to make Custom TextField?
I am trying to design a search bar like Google search bar with decreased height. But the Input text is getting cropped also the placeholder text.
@Composable
fun SearchInput1(
modifier: Modifier = ...
1
vote
1
answer
21
views
Unwanted animations between pages in a NavHost that can't be disabled?
When I switch between my 3 pages with bottom bar navigation, the pages slide and fade all around inconsistently and I want these animations completely disabled, or at least cleaner and more consistent ...
0
votes
0
answers
17
views
Jetpack Compose showKeyboardOnFocus flag don't work
I am using a Jetpack Compose OutlinedTextField and have set its KeyboardOptions to showKeyboardOnFocus = false. According to the documentation, this should prevent the soft keyboard from appearing ...
0
votes
0
answers
20
views
NoCredentialException: No credentials available
I am trying to add google sign in using Firebase in my Kotlin jetpack compose. But it is giving me the issue - No Credentials available. I want to show the list of google accounts and then one can ...
1
vote
1
answer
53
views
How to fix "Cannot create an instance of class ViewModel" when using Hilt?
I am doing a JetPack Compose course and I am trying to run an example project showcasing use of ViewModel together with Hilt.
@AndroidEntryPoint
class MainActivity : ComponentActivity() {
override ...
2
votes
2
answers
59
views
Typesafe Navigation crashes with IllegalStateException: You must call setGraph() before calling getGraph()
This is my first Android app. Currently I'm working on the navigation part. Now the issue is, whenever I click the IconButton to navigate to the Add Notes Screen the app crashes with this exception:
...
0
votes
0
answers
25
views
Jetpack Compose TV: Card click not working after returning from long press + fragment navigation
I'm working on an Android TV app using Jetpack Compose inside Fragments.
Here's my setup:
I have Fragment A that contains a TvLazyColumn with multiple custom Card Composables (which wrap a Material3 ...
0
votes
1
answer
49
views
How to make tween animation duration dynamic in compose?
I'm trying to create a form to change the animation duration. I've connected the DropdownMenu's click listener to animTime, and I've verified that animTime does change 3000 -> 300, but the actual ...
1
vote
1
answer
31
views
What makes items in a LazyList be the same `contentType`?
In Jetpack Compose, the LazyListScope.items function is defined as
/**
* Adds a [count] of items.
*
* @param count the items count
* @param key a factory of stable and unique ...
0
votes
1
answer
39
views
Jetpack Compose: Build UI dynamically based on runtime data
I'm working on an Android app using Jetpack Compose where users can customize their own screen layouts to create a native-feeling UI. The layout structure is completely dynamic — at runtime, based on ...
0
votes
1
answer
40
views
Top app bar has extra space for some reason?
I'm new to jetpack and trying to add a top app bar to my app. It works but if you like at the image I have shared there is a bunch of space on the top of the the appear. I made the app bar background ...
0
votes
0
answers
31
views
How to prevent downswipe inside a lazycolumn in a modal bottom sheet using jetpack compose?
I have created a normal modal bottom sheet. Inside the modal bottom sheet, I have a lazycolumn with items.
I have run into the problem that when a user scrolls to the top of the items of the ...
-1
votes
2
answers
54
views
How to observe map change in jetpack compose?
I wanna do some network request and show the list results in jetpack compose. I pass the request params to list widget. But the list widget cannot recompose after the map changed, even added a key.
...
0
votes
0
answers
13
views
How to access RevenueCat PurchaseParams.Builder?
I can't figure out how to use the PurchaseParams.Builder()
The docs use it this way:
Purchases.sharedInstance.purchaseWith(
PurchaseParams.Builder(this, aPackage).build(),
onError = { error, ...
-1
votes
0
answers
71
views
Recompose is not happening if state is changed
I need your help in the following problem.
When I navigate to a SignUpScreen and try to make a signup and force an error (by try to signup with already used email/password combination) I would like to ...