All Questions
70
questions
3
votes
1
answer
114
views
Logic to check if app was launched for the first time using DataStore
I have written a dummy code to check if an app was launched for the time using DataStore. It is working however i want to know if this can be optimised and i also observed a small glitch initially ...
5
votes
1
answer
86
views
Compose Grid With Lists
I have created a Grid out of using the new concept of List in Kotlin. I'm open to any feed back to how this code could be improved. It functions as expected and I'm happy with the results.
...
2
votes
1
answer
68
views
Handling View State & Side Effects with Lifecycle Awareness in Jetpack Compose MVI Composable
I'm working on a stateful Jetpack Compose composable that follows the MVI architecture. I'm using collectAsStateWithLifecycle() to observe the view state from a view model, but I'm unsure about the ...
1
vote
0
answers
57
views
Architecting my Compose UI
I have designed a layout that includes recipe details and three CTAs in the app bar to share, delete, and edit recipes. I need feedback regarding the architecture of my Compose UI.
...
1
vote
0
answers
64
views
Learning Jetpack Compose: TabBar with Paging Screens
I'm piecewise reimplementing an existing iOS app. My initial go at it visually looks like this:
I'm looking for any feedback on more idiomatic ways to implement what I've done. There's a couple of ...
2
votes
1
answer
388
views
Android: Navigation with Hilt + Jetpack Compose
The project is simple:
Login screen and a forgot password screen. You can navigate from Login to ForgotPassword.
I feel like I overcomplicated things, but I don't know if (and how) it can be ...
1
vote
0
answers
263
views
Jetpack Compose: Items-list with Item-Details-view
The app is based upon an exercise from a Udemy-course. The purpose is to become familiar with LazyColumns. I've enhanced the exercise with a Details-view and a navigation between LazyColumn and ...
4
votes
1
answer
893
views
Android + Kotlin advanced color picker (HSV and RGB)
For almost the past year, I have been working on a pixel art editor for Android.
My pixel art editor was relying on an external library for its color picker. For 0.2.0, I wanted to change this by ...
-1
votes
3
answers
214
views
Android - A way to show/hide loader without writting false/true in every viewmodelScope.launch
I have been writting a lot of code that looks like this
...
2
votes
1
answer
76
views
Processing charge current error messages with HashMap<>
I have certain error states that I am displaying in my Android TextView but only one message is displayed at a time and if all values are set to 0, no message is displayed. So, I check all the values ...
2
votes
1
answer
48
views
Observe LiveData to indicate whether or not to display TextViews in MVVM
In the context of MVVM, is this an efficient way to communicate to the view that I should display some TextViews? Any advice on how I can improve it?
ViewModel code:
...
3
votes
0
answers
1k
views
Jetpack compose login screen + ViewModel
Im working on the login screen for my application. It has fields for users email and password. Also users can click on forgot password button to send an email with new passsword. It can validate these ...
2
votes
0
answers
178
views
Android architecture and dependency injection of domain layer usecases
I am implementing some of the architectural designs from Google I/O's app to my own app, but I have come across something in their app that has created some confusion for me.
They have a domain layer ...
3
votes
1
answer
1k
views
Getting a single result from multiple LiveData objects
I have an Android viewmodel for a Fragment that requires the user to perform multiple tasks. In addition to a LiveData object to track the status of each task, I ...
5
votes
1
answer
3k
views
Calculator App with Kotlin and Android Studio
Hello I am an absolute beginner with Kotlin and Android Studio.
I want to hear what I could do better for the next time or any flaws my code has.
The code implements a four-function calculator (+ - ✕ ÷...