Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
2 votes
1 answer
80 views

I am trying to build a simple calculator using jetpack compose, my composables are: calculator(): this composable composes the whole calculator calculatorRow(): it creates a Row of Buttons When I ...
Mikel San Vicente's user avatar
1 vote
0 answers
33 views

I need to have a composition which dynamically adjusts child view width depending on available space. Rules: Right and Left dividers always visible Dividers size: min 6dp, max 16dp Dividers can ...
Bugdr0id's user avatar
  • 3,083
0 votes
1 answer
36 views

I have below code. <LinearLayout android:layout_marginStart="@dimen/space_10" android:layout_marginEnd="@dimen/space_10" android:layout_width="match_parent&...
Fahim Parkar's user avatar
  • 31.8k
1 vote
0 answers
52 views

I have a horizontal Linear Layout with two texts, and i want to make them both visible, but since The size of the first text may vary in size, i have 2 conditions to fulfill on this scenario: In ...
Angelo Miguel's user avatar
0 votes
1 answer
40 views

Main issue: text is squished so hard by View, so it gets cut. Key moments: TableRow is a child of LinearLayout so weight is supported. TableRow contains one TextView with android:layout_width="...
Alex Sukhobrusov's user avatar
0 votes
1 answer
288 views

I have following code with a TextView and a Button and I want them to be centered. The problem occurs when the text is too long so it pushes the button off the screen even if I use ellipsis. I do not ...
user2327866's user avatar
0 votes
1 answer
59 views

How to make a Linear and a Relative Layout share horizontal space as percentages? The LinearLayout on the left needs to have a percentage width of the screen, and the RelativeLayout on the right can ...
Alyoshak's user avatar
  • 2,700
5 votes
1 answer
3k views

I to want a row where the items goes to the next line if it gets to small. Fair enough, i am using FlowRow for that. I want the items to take up the space on the line they are on. Ok, tried to use ...
Meyben's user avatar
  • 621
0 votes
2 answers
100 views

I have below xml nested with Linear Layout and assigned weightSum but with different screen sizes few editText are overlapping eachother or are moving out of the screen. I tried changing value for ...
Abm's user avatar
  • 311
1 vote
1 answer
143 views

I have a LinearLayout under a LinearLayout (master layout), both vertical orientation. I set the master weight sum to 1 and I add the child layout using code with weight of 0.8 and set the width to 0 ...
ODINN's user avatar
  • 45
0 votes
1 answer
99 views

enter link description hereI create a custom layout for notification in android.I use remoteview for building notification and also add setOnClickPendingIntent() in some widgets of custom layout.But ...
Muhammad Asad's user avatar
0 votes
0 answers
67 views

I have a layout with two TextInputLayout with layout weights set for their heights and a table layout like this And here is the layout file <?xml version="1.0" encoding="utf-8"?...
Sandeep Tadepalli's user avatar
0 votes
2 answers
41 views

I am trying to create the following XML layout. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
Vishal Mahavar's user avatar
0 votes
2 answers
560 views

I have used layout_constraintHorizontal_weight=1 in three constraintLayout to make them equally divide horizontally. But it is not working. Why it is not taking in my code I am not getting. at the ...
T B's user avatar
  • 221
0 votes
1 answer
52 views

I need to divide 3 views equally horizontally and the content of the views to be centered. I tried using the link: https://medium.com/@nomanr/constraintlayout-chains-4f3b58ea15bb But I'm unable to ...
T B's user avatar
  • 221

15 30 50 per page
1
2 3 4 5
31