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
Post a Comment