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

Nested list bullet points overlap text

Open kobronson opened this issue 8 years ago • 14 comments

This is reproducible only on Android 6.0. I have seen this on Genymotion and Nexus 5X. It appears only when list is nested in another one:

  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk

It seems that spaces between bullet point and text are ignored. Poor workaround for this is to add \t between the bullet point and a text.

kobronson avatar Nov 17 '15 14:11 kobronson

Same here: screen shot 2016-09-18 at 1 00 36 am

ericntd avatar Sep 17 '16 17:09 ericntd

Same issue. Any update?

codesForLiving avatar Nov 16 '16 13:11 codesForLiving

I am open for pull requests :grimacing:

dschuermann avatar Nov 16 '16 14:11 dschuermann

Yeah, same bug

maxim-yudin avatar Nov 24 '16 07:11 maxim-yudin

Same Issue with me as well. Do we have any work around?

bhavna-nga avatar Aug 24 '17 10:08 bhavna-nga

yeah, same issue here.

programmermager avatar Jan 29 '18 03:01 programmermager

same issue

geet000 avatar May 22 '18 06:05 geet000

Please try 3.6 and report back.

dschuermann avatar Jul 13 '18 12:07 dschuermann

yes it still replicates at 3.6

Vivecstel avatar Jul 17 '18 06:07 Vivecstel

same for 3.6

farimarwat avatar Dec 18 '18 07:12 farimarwat

Same happening here on 3.6. Any update on this?

lewiemortier avatar Oct 03 '19 10:10 lewiemortier

Still happening on 3.8. Perhaps we could put an explicit space character in the lists? Affects API 23 Sony Xperia Z3 compact tablet.

Kisty avatar Dec 16 '19 10:12 Kisty

Also, how about inserting <pre> tags and put spacing inside there? Will try it out first.

Kisty avatar Dec 16 '19 11:12 Kisty

OK, I've found a workaround for unordered lists/bullet points. For Marshmallow, insert a followed by a space. There's a tiny visual artifact on the Sony tablet (both bullet points slightly overlapped making point wider) but on emulator it doesn't show.

String bulletPointFixCharacter;
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.M) {
  //Fix for Marshmallow
  bulletPointFixCharacter = "∙ ";
} else {
  bulletPointFixCharacter = "";
}
String html = 
  "<p>\n" +
  "  <ol>\n" +
  "    <li>Item 1</li>\n" +
  "    <li>Item 2</li>\n" +
  "    <li>Item 3" +
  "      <ul>\n" +
  "        <li>" + bulletPointFixCharacter +  "I'm a nested list item</li>\n" +
  "      </ul>\n" +
  "    </li>\n" +
  "  </ol>\n" +
  "</p>";

Marshmallow API 23 (Sony tablet) Screenshot_20191216-123801

6.0 Marshmallow API 23 (emulator) Screenshot_1576500004

9.0 Pie API 28 (emulator) Screenshot_1576500000

Kisty avatar Dec 16 '19 12:12 Kisty