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

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -