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.

android - View taking up whole screen when not desired -


when call setcontentview view, takes whole screen. thought wrap_content , wrap_content mean view big enough show 2 strings only. show small dialog. ideas? how alert dialog use size needs? thanks

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_width="wrap_content"      android:layout_height="wrap_content"      android:padding="80dp"     > <textview       android:id="@+id/dialog_title"     android:textsize="15sp"     android:gravity="center_horizontal"     android:layout_width="fill_parent"                          android:layout_height="wrap_content"               android:text="string 1"     /> <textview      android:id="@+id/dialog_text1"      android:textsize="10sp"     android:gravity="center_horizontal"          android:layout_width="fill_parent"                          android:layout_height="wrap_content"                    android:text="string 2"     /> </linearlayout> 

see http://developer.android.com/guide/topics/ui/dialogs.html information on creating , using dialogs.


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 -