Sure, that is what I had originally thought. But how do you get the Title view 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; > > > } > > > > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---