Background I’m currently investigating options for creating layouts, during the development of the project I’m looking to possibly migrate the UI to Jetpack Compose or post release, depending on the …
Tag: android-layout
I have a TextView which contains a random string of 60 characters. The string is a single word and does not contain any white spaces. The problem is that after certain characters (e.g. @, &, %) I …
I’m using MVVM design pattern and so the native data binding. Is it possible to use multiple data variable for one view in data binding? I mean that I have one xml layout that use data binding and I …
I have a Composable function which displays 2 TextFields. Here’s my code: fun CreateEntryItem() { var wordA by remember { mutableStateOf(“”) } var wordB by remember { mutableStateOf(…
When I click the Help the app is suddenly not responding. I added some toolbar with the application the about is working fine but it comes the help button the app suddenly stops. Here’s my code …
Encountered a weird issue when using ViewBinding with Fragments. fragment_one_layout
I have a view hierarchy as shown in the image below. I’m getting strange scroll behaviors like, If I scroll (drag slowly or fling) from Area 1 the AppBar collapses along with it. This is fine. But …
I’m trying have an image to the right of a TextView with a single line. When the text is short it works fine. The problem is when the text is too big and is truncated. The text fills the LinearLayout …
I’m in the process of transitioning from an unwieldy view layout, with lots of repetition of basic view groups, to one where each type of view group has its own layout, which I then include in each …
I have a Fragment with a ScrollView and a BottomNavBar from which the Fragment is inflated but when compiled the ScrollView cover the Bottom Nav Bar making is unusable how do I restrict the content of …