[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-13 Thread sat
I used layout with a listview and used AlertDialog.Builder.setView(layout); Then calling setLayout on alertDialog Window , gave me more control on the layout. Thankyou. On Dec 12, 1:50 am, Dianne Hackborn hack...@android.com wrote: You can't control the size of AlertDialog like that.  The

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-11 Thread Spiral123
rather than write it as an AlertDialog why not create a full Activity but just theme is as a Dialog? Then you could control just about anything. On Dec 10, 11:20 pm, sat sathvikm...@gmail.com wrote: Hi, Can you point me to some examples where AlertDialogs are built using Dialog class ? I have

Re: [android-developers] Re: How to control the width and height of Alert dialog.

2010-12-11 Thread Dianne Hackborn
You can't control the size of AlertDialog like that. The point of AlertDialog is an easy way to through up various standard kinds of dialogs with a standard appearance that you don't control very much. If you want more control, use Dialog. On Fri, Dec 10, 2010 at 8:20 PM, sat

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread viktor
Did you set layout after setting content view? It works for me, but I extend the Dialog. On 10 Грд, 14:39, sat sathvikm...@gmail.com wrote: AlertDialog.Builder builder = new AlertDialog.Builder(this);             builder.setTitle(Title);             builder.setItems(items, new

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread Doug Gordon
In a similar situation, I stopped using AlertDialog and went directly to the Dialog class. You can do everything you need to do that way, but a bit more complex since you don't get some of the shortcuts that AlertDialog provides. Doug Gordon On Dec 10, 7:39 am, sat sathvikm...@gmail.com wrote:

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread sat
@Viktor - I am calling alert dialog on clicking a button , I am setting contentView in On create , on click of a button calling the alertDialog code. On Dec 10, 10:50 pm, viktor victor.scherb...@gmail.com wrote: Did you set layout after setting content view? It works for me, but I extend the

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread sat
Hi, Can you point me to some examples where AlertDialogs are built using Dialog class ? I have seen Custom dialog box code , where I can refer to XML and set the contentView. But my requirement is, depending on the array of strings I would like to show them as a textview inside an AlertDialog ,