Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>However, when a spinner is clicked, the drop-down list appears at full width and covers the whole table. </p> </blockquote> <p>That is because it is really a pop-up dialog.</p> <blockquote> <p>There must be a way of restricting the width of the list.</p> </blockquote> <p>This is difficult, as you are not the one creating the dialog. I do not even see how you could accomplish this by extending Spinner with your own subclass, given the way <code>Spinner</code> is written. You might have to clone the <code>Spinner</code> source code, move it to another package (or class name), and alter <code>performClick()</code> to change the size of the <code>AlertDialog</code> using the techniques outlined in <a href="https://stackoverflow.com/questions/4406804/how-to-control-the-width-and-height-of-default-alert-dialog-in-android">How to control the width and height of the default Alert Dialog in Android?</a>.</p> <p>And, bear in mind that the behavior of <code>Spinner</code> is significantly different on Honeycomb, and it remains to be seen how it looks on Ice Cream Sandwich. We do not have the Honeycomb source code, so my clone-the-class solution is going to give you problems on newer devices.</p> <blockquote> <p>I have seen a note on R.attr.dropDownWidth which looks as though it may help but I have no idea how to implement this method, let alone if it will actually work.</p> </blockquote> <p>It is not a method, but rather an attribute you could set in a style. However, based on the source code, it appears that this is only used for <code>AutoCompleteTextView</code>'s drop-down.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload