Comments (7)
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
from expandablelayout.
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
from expandablelayout.
Hi, a new version 1.0.7
has been released.
Please try using a new release. Thanks!
from expandablelayout.
I'm having the same problem, is there any solution?
from expandablelayout.
@skydoves This is still a problem.
I tried to fix this and just couldn't find the reason why it works in your demo but not in my app.
I discoverd that this is caused when the layout height is changed because it's content changed.
To reproduce this just adjust this line in your demo MainActivity to change the text and make it larger dynamically:
expandable1.setOnExpandListener {
if (it) {
toast("expanded")
expandable1.secondLayout.findViewById<TextView>(R.id.textView).text = "${getString(R.string.text_stars)}${getString(R.string.text_stars)}${getString(R.string.text_stars)}"
} else {
toast("collapse")
expandable1.secondLayout.findViewById<TextView>(R.id.textView).text = "${getString(R.string.text_stars)}${getString(R.string.text_stars)}${getString(R.string.text_stars)}"
}
}
from expandablelayout.
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
I'm having the same problem using 1.0.7 version
from expandablelayout.
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
OH MY ***ING LIFE. THANKS A LOT.
I have faced same issue, but i was summarize all textview lines and multiplied it on some constant and after this reindicated layoutParams for secondLayout and it some how a little bit fixed my issues!
Thank you @abedsako
from expandablelayout.
Related Issues (20)
- demo project HOT 2
- Parent height does not dynamic
- New version? HOT 1
- Wrong header size HOT 1
- Spinner expanded icon color HOT 1
- Expand animation not working HOT 1
- arrow view bug HOT 1
- toggleLayout() cannot be resolved HOT 1
- secondLayout not completely hide when collapsing HOT 2
- setVisibility not working
- Recycle view - example
- Recycler View in second Layout is not mesured HOT 2
- View Binding for parent and second layouts
- Spinner icon color only changes one time programmatically HOT 1
- The lib has weird issues in RecyclerView
- conflicts with another tag that has the same ID HOT 1
- Duplicate Arrow HOT 1
- Parent layout textview is not showing multi text
- Library not working with the app written in java
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expandablelayout.