All Questions
10,757 questions
0
votes
1
answer
31
views
Android Compose - how to match the height of composables side-by-side centered in a Box
I have 2 composables centered vertically in a Row, centered in a Box.
The left side of the box is generated, an can be any height.
The problem is that the right side height is never stretched to the ...
1
vote
1
answer
28
views
EditTexts are populated with same data after rotation
I have a layout with some EditText, like name, surname, city... I include this layout in another layout a couple of times, so there is two EditText for the name, surname, etc. The problem I face is if ...
0
votes
1
answer
33
views
Custom ViewGroup extending ConstraintLayout doesn't show views when the view isn't constraint to 4 sides
I've created a custom ViewGroup that extends ConstraintLayout and dynamically adds itself as a view. Inside this ViewGroup, I’m adding EditText and TextView elements. My goal is for the first EditText ...
1
vote
0
answers
87
views
Android <include> constraints are not working anymore
I've always worked with reusable layouts with no problem using viewbinding + dataBinding in Android development.
Recently, the <include> tags have had this issue:
When added to a layout, the ...
1
vote
1
answer
131
views
How to ensure pixel perfect layout in Flutter
We are developing a flutter app which supports multiple languages. The client wants the app to look exactly the same on all phones like the Figma design given to us. They have sent us screenshots of ...
0
votes
0
answers
36
views
how to create android layout like image?
android layout
I am new in Android. I am doing android application. I have tried many options. but layout didn't match like this.
I am trying so much but not get exactly solution.
<androidx....
0
votes
0
answers
74
views
Detecting if Android foldable device is open and flat or closed is not working always
I tried detecting when foldable device is opened (FLAT) and update ui, this is the code, but the problem is sometimes it works and sometimes it does not, I mean sometime I open the device, callbak is ...
0
votes
0
answers
29
views
Selecting multiple textviews with only one longclick
I am creating textviews on top of a imageview . I am detecting the text on the image and creating textviews with same position and sizes it works well but there is a problem
ı can only select the text ...
0
votes
2
answers
40
views
Connect two LazyGrid layouts
I have an app that shows a list of projects and filters for them. The filters are above the projects and can be hidden. The problem is that it is not clear how to use LazyGrid to hide these filters ...
1
vote
0
answers
36
views
Pixel tablet in AS emulator is not loading the correct layout version
My app has different layout versions for 'port', 'land', 'SW600dp' etc., which load correctly into the emulator for other devices such as Pixel 7a and Pixel C, but the emulator for the Pixel Tablet ...
0
votes
0
answers
214
views
Hello How to Force expo app to be just RTL?
I have an app is written in expo and all things in the app use "Arabic Language"
So I want to force the app to be RTL, so I use supportsRTL and forcesRTL to do it and it's work fine in ...
0
votes
1
answer
53
views
How do you define a landscape layout for the PreferenceScreen?
The Android PreferenceScreen layout is defined in the res/xml folder as root_preferences.xml. How can I define a landscape version of this? Normally, from my understanding, is that you would create ...
0
votes
0
answers
31
views
GridLayout CardView goes out of screen on my phone only
Im trying to make a list of products using GridLayout + CardView, it went well on the studio when i was designing Expected Results
But when i went ahead and opened the app on my phone i get this ...
0
votes
0
answers
27
views
How to change the order or RecyclerView items in GridLayoutManager?
I have written my own implementation of GridLayoutManager to display specific given number of rows and columns of RecyclerView.
The problem is, that the items are being rendered in a top-to-bottom ...
0
votes
0
answers
49
views
How to change the order of displayed items in horizontal RecyclerView using GridLayoutManager with constructor?
I want to create a horizontal RecyclerView that displays the items in such form:
Item1 Item2 Item3 Item4 Item5 | Item11 Item12 Item13 Item14 Item15
Item6 Item7 Item8 Item9 Item10 | Item16 Item17 ...
...