Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

layout - Get dimensions after setLayoutParams in Android -


in android, after call view.setlayoutparams, how can find out dimensions (width & height) , position (x & y coordinates) of view?

if query these properties after setlayoutparams return invalid values.

according documentation, view.onsizechanged called after size of view changed. means have subclass widget dimensions want query, override onsizechanged , notify activity of change?

haven't tried myself, long you've added view child , called invalidate() after you've set layoutparams, think should able determine width , height.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -