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

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -