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:

  1. textview.buffertype.editable
  2. textview.buffertype.normal
  3. textview.buffertype.spannable

for e.g.

myedittext.settext("this new text settext buffertype editable.",  textview.buffertype.editable);  

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -