Open harismuneer opened 4 years ago
Is it AndroidX compatible now?
Is it AndroidX compatible now?
Some of the library versions used in the original repository are outdated now. I had to clone this repository and update the versions especially the annotation libraries like
import android.support.annotation.DrawableRes;
with the AndroidX ones:
import androidx.annotation.DrawableRes;
Some libraries used in the build.gradle file were also updated. Therefore, after these modifications, I had to include this as a new module in the project since its now a customized library.
If I get some time then I will try to fork this project, update the libraries and generate the PR but I am quite occupied by work these days. It would be great if you or someone else could do the needful.
Incase of large text, the text isn't shown completely in expanded state. This is still a bug in the latest version of this repository as of today and needs to be fixed in the next release @Manabu-GT . For now, following is the solution explained clearly.
SOLUTION
In ExpandableTextView class, in the onMeasure method: Cut the line
and paste it right below this line
Or for ease, you can directly replace your onMeasure method with the method below.
This was also discussed in this issue here #5 but the solution wasn't explained clearly.