I guess it depends on how you define "dialog". As it stands in the SDK
now a dialog can be used for almost anything, for example you can
display an error to the user or even get input from the user. The
issue mainly revolves around spacing, especilly when the device is in
Landscape.

1) If I were to show an AlertDialog, of course I want to have a title
(something like "Error: Nothing Found...").

2) But, if I am attempting to use the dialog to retrieve user input
like for example user information (address, email, phone, etc etc)
there is no need for the title. Using the EditText's "hint text", I
can simply add "Email Address" as a hint, and the title becomes
redundant.

Again, this is really a question of screen real estate and the title
just takes up too much room on a device in Landscape mode.

Any ideas besides writing an activity that "looks" like a dialog?

Kevin

On Dec 7, 10:25 am, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
> Did you set it to invisable and shorten it? I have never heard of aDialogwith 
> notitle.
>
> On 12/07/2008, cyntacks <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Sure, that is what I had originally thought. But how do you get the
> >Titleview in order to set it to GONE (I believe INVISIBLE still takes
> > up some space)?
>
> > On Dec 7, 6:58 am, Christine <[EMAIL PROTECTED]> wrote:
> >> When you set the view to "invisible", it won't take up space:
> >> yourTextView.setVisibility(TextView.INVISIBLE)
>
> >> On Dec 7, 4:09 am, cyntacks <[EMAIL PROTECTED]> wrote:
>
> >> > I'm just bumping this, I have been trying to figure this out for the
> >> > past 2 hours... anyone know how this can be done?
>
> >> > On Nov 13, 1:26 pm, G <[EMAIL PROTECTED]> wrote:
>
> >> > > I've got the following NumberPickerDialog class which extendsDialog.
> >> > > Currently the pick_number.xml contains only a LinearLayout and 1
> >> > > button (this is all incomplete as i'm still in early dev stages). When
> >> > > I show thisdialog, I get a blank space for thetitleeven though I do
> >> > > not specify one. I would like that blank space gone, so i have more
> >> > > room on screen for more buttons. How do I create thisdialogwith
> >> > > notitle/empty spot fortitle? I've tried setTitle(null) which didnt
> >> > > work, and setTheme(android.R.style.Theme_NoTitle) which is not
> >> > > supported by theDialogclass.
>
> >> > > Thanks a lot.
> >> > > /g
>
> >> > > public class NumberPickerDialog extendsDialog{
>
> >> > >         public interface OnNumberChangedListener {
> >> > >                 void numberChanged(int number);
> >> > >         }
>
> >> > >         private OnNumberChangedListener mListener;
> >> > >         private int mInitialNumber;
> >> > >         private int mMinNumber;
> >> > >         private int mMaxNumber;
>
> >> > >         @Override
> >> > >         protected void onCreate(Bundle savedInstanceState) {
>
> >> > >                 super.onCreate(savedInstanceState);
>
> >> > >                 setContentView(R.layout.pick_number);
> >> > >                 //setTitle("THIS SHOULDNT BE HERE");
>
> >> > >                 Button btn = (Button)findViewById(R.id.Button01);
> >> > >                 btn.setOnClickListener(new Button.OnClickListener() {
>
> >> > >                         public void onClick(View v) {
> >> > >                                 // TODO Auto-generated method stub
> >> > >                                 String num =
> >> > > ((Button)v).getText().toString();
>
> >> > > mListener.numberChanged(Integer.parseInt(num));
> >> > >                                 dismiss();
> >> > >                         }
>
> >> > >                 });
> >> > >         }
>
> >> > >         public NumberPickerDialog(Context ctx, OnNumberChangedListener
> >> > > listener, int initialNumber, int minNumber, int maxNumber) {
> >> > >                 super(ctx);
> >> > >                 mListener = listener;
> >> > >                 mInitialNumber = initialNumber;
> >> > >                 mMinNumber = minNumber;
> >> > >                 mMaxNumber = maxNumber;
> >> > >         }
>
> >> > > }
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Google Group Client Based Tech Support Specialist
> Hazel Crest Illinois
> [EMAIL PROTECTED]@[EMAIL PROTECTED]
> "Fear of a name, only increases fear of the thing itself."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to