java - Setting "Wrap Content" to a view programmatically -


is possible set wrap content identifier int? following code work?

edittext et = new edittext(getactivity()); et.setwidth(wrap_content); 

i suppose should that:

edittext edittextview = new edittext(getactivity()); layoutparams params = new layoutparams(layoutparams.wrap_content,         layoutparams.fill_parent); edittextview.setlayoutparams(params); 

Comments

Popular posts from this blog

java - How to print docx and pdf? -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

java - IntelliJ to move a class along with conflicted classes to a new package? -