Empty BulletSpan issue in android Edittext -


i'm implementing rich text editor. in that, when user clicks on bullet icon in toolbar, empty bullet should created no character in it. can not achieve setting span on cursor position. have add unwanted space this. using below code,

editable.insert(cursorpos, " "); editable.setspan(new bulletspan(), cursorpos, cursorpos + 1,spanned.span_inclusive_inclusive); 

i have tried leadingmarginspan same result. getting required feature, if cursor placed in first position of edittext or there text in line. same problem persists in numbered list also. , problem persists first bullet/number in list. in subsequent bullet or numbered list item span working properly.

can please me how implement empty bulletspan without space or character ?
in advance...


Comments