Closed ladjzero closed 9 years ago
Nothing wrong, I'll investigate it, thanks for the report.
It's actually a duplicate of #118 which just got fixed.
In class:
com.joanzapata.iconify.internalCustomTypefaceSpan
Method:
draw(Canvas canvas, CharSequence text,int start, int end, float x, int top, int y,int bottom, Paint paint)
I made the following change to align "{fa-arrows-h}" in center of two strings. It was baseaglined by default somehow and was not vertically centered in my case.
canvas.drawText(icon,
x - TEXT_BOUNDS.left,
rotate? y - TEXT_BOUNDS.bottom + TEXT_BOUNDS.height() * baselineRatio:y, paint);
Here is my xml snippet
The icon and the text aside are not aligned.![20150905_142119_screenshot_zte g717c](https://cloud.githubusercontent.com/assets/4110311/9698093/564bfba2-53da-11e5-9c59-7386973ae31a.jpeg)
Is there anything wrong in my xml?