html-textview icon indicating copy to clipboard operation
html-textview copied to clipboard

li is Not working with lineSpacingExtra, the bullet is not in center vertically

Open wyouxiong opened this issue 6 years ago • 4 comments

wyouxiong avatar Nov 21 '18 02:11 wyouxiong

That is a bug from the implementation of BulletSpan in Android < 28.

It would great that the library would implement a fixed version of BulletSpan...

ivannarino avatar Oct 06 '19 20:10 ivannarino

I am open for pull requests.

dschuermann avatar Oct 07 '19 20:10 dschuermann

I suggested one approach in the following PR #172 , the fixed implementation is still required though.

The implementation can be inspired from this article https://medium.com/ackee/how-to-make-bulletproof-bullet-lists-in-textview-223c54fb21e6

ivannarino avatar Oct 09 '19 02:10 ivannarino

@ivannarino Great thanks for the re-factoring in #172 . Can you port over the ImprovedBulletSpan from the medium blog post in another pull request? Would be pretty awesome.

dschuermann avatar Oct 09 '19 07:10 dschuermann