1
I’m using a Expandablelistview, where I have a content expansion icon, but every time I increase the height of the option, the image gets the same height, distorting the image. How do I fix the size?
In class I make the following call to xml:
expandableListView.setGroupIndicator(getResources(). getDrawable(R.drawable.icon_group));
XML:
Final result:
Could post the xml layout of that item?
– Wakim
I entered the xml in the question, Wakim.
– mila
So... I never used the
ExpandableListView
in minutiae, but the vast majority of problems with this distortion are solved using a9-patch
instead of a simple Asset. Basically it would be to create a9-patch
this icon with each tip having 1 transparent pixel to resize, so you can keep the opaque part of the icon intact. To generate the 9-patch, I recommend this site: https://romannurik.github.io/AndroidAssetStudio/nine-patches.html– Wakim