java - different of setText(CharSequence,TextView.BufferType) and setText(CharSequence) -
what difference between settext(charsequence, textview.buffertype)
, settext(charsequence)
, , when should use them?
settext (charsequence text)
sets string value of textview. whereas
settext (charsequence text, textview.buffertype type)
sets text textview display , sets whether stored in styleable/spannable buffer , whether editable.
all buffertype options are:
- textview.buffertype.editable
- textview.buffertype.normal
- textview.buffertype.spannable
for e.g.
myedittext.settext("this new text settext buffertype editable.", textview.buffertype.editable);
Comments
Post a Comment