Fixed height, not able to see the full view.
See original GitHub issueLibrary Version v1.0.6
The layout set as secondLayout
is not displayed entirely. It has android:layout_height="match_parent"
but the ExpandableLayout
doesn’t take in the full size of the layout file.
I’d expect to have the second layout fully displayed. The ExpandableLayout
should take the added height
of it’s parent and second layout when expanded. Right now I see it’s a fixed size and I have to include a ScrollView
as a workaround
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Why doesn't height: 100% work to expand divs to the screen ...
In order for a percentage value to work for height, the parent's height must be determined. The only exception is the root element...
Read more >CSS Make A Div Height Full Screen [THREE SIMPLE WAYS]
Learn the three QUIKEST ways to make a div full screen using pure CSS that are height:100%, height:100vh and position:absolute.
Read more >Setting Height And Width On Images Is Important Again
To prevent layout shifts and improve performance scores, we need to always set width and height attributes on our images.
Read more >Background image height problem - not fitting to the screen
Your body hasn't the full height of the screen. And the background size you now use (100%, 100%) looks therefore out of scale....
Read more >Height and Width - React Native
Height and Width. A component's height and width determine its size on the screen. Fixed Dimensions. The general way to set the dimensions ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I faced this issue the same issue. after the Expandable layout is created and I set the text to the text view in the (second layout) is not displayed entirely, I needed to find a quick fix so I have done the following:
app:expandable_secondLayout="@layout/expandable_second"
) from the XML layout.binding.myExpandableLayout.secondLayoutResource = R.layout.expandable_second
)binding.myExpandableLayout.secondLayout.findViewById<TextView>(R.id.expandableDescription).text = longDescription
)*Note: if there is an image view with an image in it or a text view with text in it in the XML layouts it will redraw above it again
I faced this issue in version 1.0.7. When using recyelerView in secondLayout