I want to restrict the width size of the spinner to a particular lenght.I
tried this ,but it does not seem to work? How do I acheive this?
int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(200,
View.MeasureSpec.AT_MOST);
int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(0,
View.MeasureSpec.UNSPECIFIED);
contactsSpinner = (Spinner) findViewById(R.id.contactDropDown);
contactsSpinner.measure(widthMeasureSpec, heightMeasureSpec);
<Spinner android:id="@+id/contactDropDown"
android:prompt="@string/spinner_contact_prompt"
android:gravity="left"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---