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.

java - Android: Creating a custom container-view -


i'm trying create custom view (or better, layout) in android, serves container 2 child views (think of bar separates 2 containers vertically, can swiped , down).

i'd use layout in xml, can nest views in it. thought of that:

            <view class="at.calista.quatscha.views.swipebarlayout"             android:id="@+id/sbl"             android:layout_width="fill_parent"             android:layout_height="fill_parent">              <!-- top view -->             <button android:text="top" android:id="@+id/button01" android:layout_width="wrap_content" android:layout_height="wrap_content"></button>              <!-- bottom view -->             <button android:text="bottom" android:id="@+id/button02" android:layout_width="wrap_content" android:layout_height="wrap_content"></button> </view> 

this xml should give me swipeable bar between 2 buttons.

however, don't know how accomplish this, i'm extending linearlayout atm, how tell children how position themselves?

instead of

<view class="at.calista.quatscha.views.swipebarlayout"         android:id="@+id/sbl"         android:layout_width="fill_parent"         android:layout_height="fill_parent"> 

you can use

<at.calista.quatscha.views.swipebarlayout         android:id="@+id/sbl"         android:layout_width="fill_parent"         android:layout_height="fill_parent"> 

if swipebarlayout class extends linearlayout behave same way if have linearlayout tag in code instead , can position children same way linearlayout. of course if have overridden methods linearlayout functionality different part.


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 -