All Questions
70
questions
6
votes
0
answers
199
views
Converting between cooking measurements
I've made an Android app that converts between cooking measurements, taking into account the type of product you use (that way it can convert between mass and volume by using the density). What are ...
5
votes
1
answer
345
views
Code for sorting items in recyclerView
I'm have recyclerView which is needed for displayed for show list of my audio records. I added the ability to sort my audio records. Please take a look at the code that I use for sorting and tell me ...
5
votes
1
answer
89
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.
...
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 (+ - ✕ ÷...
5
votes
2
answers
3k
views
Java/Kotlin JSON parsing improvement
I consume an API which gives me this type of JSON:
...
4
votes
2
answers
709
views
Android Tic-Tac-Toe
I have made an Android Tic-Tac-Toe adaptation as a weekend-project.
Here's the Kotlin-code.
MainActivity:
...
4
votes
1
answer
435
views
Fragment to control and show camera images
I have never tried this before. Just started with Kotlin and Android CameraX. Here is a fragment I would like some feedback on so I can writer safer and better Kotlin code.
...
4
votes
1
answer
2k
views
Correct flow between Kotlin, Realm and ViewModels using Coroutines
I'm stepping back into Android after being away from it for about a year. Trying to get an out of date app of mine back on its feet, and continuing work on it.
The app was written using Java, MVP, ...
4
votes
1
answer
894
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 ...
4
votes
1
answer
147
views
Finding the type of number entered by the user
I am making a fractions calculator that can calculate fractions, whole numbers and mixed fractions.
So there is a String fraction, which is the input.
Also, the user will enter the fraction in a ...
4
votes
2
answers
543
views
Storing realm objects using Kotlin extensions
I am a Java Android Developer and I'm approaching Kotlin.
I have defined the following class:
open class Player : RealmObject() {
...
}
And I defined the ...
4
votes
0
answers
2k
views
View Binding with Base Classes
UPDATE: After getting "a kind of" affirmation from various platforms( my discussions on twitter, reddit, other stack overflow posts,etc) I have written an article on this style of view ...
4
votes
0
answers
223
views
A better understanding for separation of concerns. Android; Kotlin
I am an Android developer with only 5 months of experience. I am still learning and trying to do my best.
Right now I am interested in concept of ...
4
votes
1
answer
190
views
Change layout in Gridlayout runtime
I'm trying to change the GridLayout of my application in runtime, the user can select 1, 2 or 3 columns for his display. To do that I've used a ...
4
votes
0
answers
907
views
Wrap location API in coroutines
In my app I need to query location and scan wifi periodically. To conserve power I need to change the rate dynamically, depending on the distance to the target. Also I want to wait for both ...