Im currently developing an android app and Im having problems with a FAB (floating action button). For screens over 6″ in shows but for screens below 6″ (I have 5.8 as my personal for example), the button is outside of the screen and not accessable. I would like to have it in the bottom right corner with some padding ofc.
I have done some java before but Im new to Kotlin and these kinds off issues (really not a UI type of person..)
Here is a link to the code: https://pastecode.io/s/sra4jc2y
There is more files and I have the main screen calling the FAB but I separated the files to make it easier to work with.
Some help would be highly appreciated !
I’ve asked both ChatGPT and Gemini for help, but not success. They have suggested scaffolding, WindowInsets, ConstraintLayout, Direct Measurement of Screen Dimensions, Boxes and Aligment, Column with offset, navigationpadding but nothing works. Either the button is still outside of the screen or I get errors that cant be resolved.
Eli Heli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.