question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fixed height, not able to see the full view.

See original GitHub issue

Library 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:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
abedsakocommented, Sep 28, 2021

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:

  • Removed (app:expandable_secondLayout="@layout/expandable_second") from the XML layout.
  • Pass the (second layout) right before setting the text to its component (binding.myExpandableLayout.secondLayoutResource = R.layout.expandable_second)
  • Set the data (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

1reaction
sartajroshancommented, Jun 26, 2021

Hi, a new version 1.0.7 has been released. Please try using a new release. Thanks!

I faced this issue in version 1.0.7. When using recyelerView in secondLayout

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found