android-wrap-content Questions
3
Solved
How to make the parent layout - Box wrap its content in Jetpack compose?
The current implementation below fills the entire screen, I only want the Box to wrap around its child - Switch. How do I de...
Undrape asked 2/12, 2022 at 0:14
8
Solved
Here is my layout code. When i click on the expandable list view it does not expand. However, if I increase the height of list it expands. Is there a way to increase the height of list dynamically ...
Corot asked 9/6, 2015 at 12:22
10
I need to make sure that horizontal recyclerView height is the same as the height of the biggest item.
Items can have a different height (Item = always the same image + title + subtitle, title an...
Shuck asked 11/9, 2019 at 13:21
3
I have a RecyclerView as the only child of SwipeRefreshLayout, I want the RecyclerView wrap_content. When I set both of them "wrap_content", it doesn't work. The RecyclerView with fewer i...
Mix asked 3/12, 2016 at 6:41
2
I am in the process of trying to convert a desktop app to Android - and am struggling with some very basic stuff.
When I specify a layout including a textview that holds a sizable amount of text w...
Jut asked 20/9, 2010 at 21:56
8
Solved
In my Fragment I have a ConstraintLayout with layout_height="wrap_content" and I would like to have a margin between my two buttons at the bottom of the view.
When I add this margin as la...
Tredecillion asked 3/1, 2018 at 17:43
2
I am starting with this:
<TextView
android:text="Here is what it looks like"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:gravity="center"/>
Which r...
Shum asked 28/10, 2015 at 16:49
1
Solved
I got a RecyclerView inside an HorizontalScrollView and I want it to use a GridLayoutManager. This is ok but one thing still bother me, the width of every columns are the same (based on the largest...
Cythiacyto asked 14/12, 2016 at 16:21
2
Solved
I want my inner RelativeLayout to wrap it's content and stay below the View element. Why isn't it behaving like the pic below?
My layout.xml
<?xml version="1.0" encoding="utf-8"?>
<Relat...
Wendell asked 27/1, 2016 at 10:55
1
© 2022 - 2024 — McMap. All rights reserved.