I'm observing an issue where the onMeasure method of my custom view is receiving a MeasureSpec that corresponds to the full parent view's size, instea ...
I'm observing an issue where the onMeasure method of my custom view is receiving a MeasureSpec that corresponds to the full parent view's size, instea ...
I have three buttons inside a MaterialButtonToggleGroup. The issue is that all the labels are being cut off and not wrapped. I've searched a lot ...
I'm wondering if anyone else has experienced this strange bug. My layout is complicated but essentially it's rows of view holders with EditText fields ...
. Answers to this question are eligible for a +50 reputation bounty. Va ...
I'm trying to get a textview to occupy up to 2 lines (would only be 1 line if there is only 1 word / no spaces), but be as narrow as possible. For ex ...
I set ViewPager's height wrap_content but it doesn't work. I tried answers in other similar questions but they didn't solve my problem. my activity_ma ...
Let's say the text size of the TextView is set to minimum (20sp) after resizing and setting the text to for example XXXXXXXXXXXXXXXXXXXXXX. Then, I ...
I have a horizontal LinearLayout with 3 text views with width set to wrap_content. I want them all to be wrap content, but there is a potential that o ...
i'm trying to make a TextField that is a minimum size, and that expands around the text being written inside it, how can i achieve this? This is my t ...
I want the test view to take only as much height as occupied by the rest of the card. (See images at the end of code snippet) But it is pushing the he ...
I am creating a chat bubble and I noticed that when you have a TextView with text that spans multiple lines the width of the box locks to the (in this ...
I'm creating a layout_banner.xml that is referenced by multiple other layouts, and has a height of 80dp. layout_banner.xml: Preview: However, o ...
I'm trying to set SwipeRefreshLayout which contains children ListView to wrap_content in a DialogFragment. to actually make the Dialog wrap the heigh ...
I'm trying to get a TextView which could be multiple lines tall and with the minimal width needed large. I tried a wrap_content width, but the TextVie ...
I need a horizontal ScrollView with a fixed height of 100dp and dynamic content of ImageViews. Currently I the ScrollView has a horizontal LinearLayo ...
I have a simple RecyclerView using 2 strings. As soon as the 2nd TextView gets multiple lines of text, it gets cut out instead of just expanding the h ...
i can't understand the value wrap_content for View's elements (like ProgressBar, Switch, primitive View with background - that for some reason takes a ...
I have a VerticalGridView in which i plan to use multiple VerticalGridViews. Wrap_Content does nothing for a VerticalGridView if its set on it's heigh ...
I am using RecyclerView ('androidx.recyclerview:recyclerview:1.1.0') and Glide('com.github.bumptech.glide:glide:4.10.0'). I wanted to create image li ...
I need your help designing a layout that works with the few following requirements: Requirements: TextA (Green): is always there. m ...