title: Spinner (dropdown)item same size as Spinner
body: <p>can i make the size of my item and especially the dropdownitems the same size as the spinner? They are a little bit smaller at the moment. i want them to fill the whole Spinner.
  Can anyone help me?</p>
  
  <p>edit: </p>
  
  <p>it looks like this:
  <a href="http://image-upload.de/image/vjYswg/cbc92fd3e9.jpg" rel="nofollow">http://image-upload.de/image/vjYswg/cbc92fd3e9.jpg</a></p>
  
  <p>and i want this:
  <a href="http://image-upload.de/image/JdVZ5z/1f73d79751.jpg" rel="nofollow">http://image-upload.de/image/JdVZ5z/1f73d79751.jpg</a></p>
  
  <p>oh and i have to use API 14, so i can't set dropdownwidth</p>
  
  <p>i have set the dropdownviewresource to the following xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape = "rectangle"&gt;
      &lt;solid
          android:color="#666666" /&gt;
      &lt;corners
          android:radius="3dp" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>edit: sry, this was my spinner layout, for dropdown_items i use</p>
  
  
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="43dp"
      android:orientation="horizontal" &gt;
      &lt;ImageView
          android:layout_height="30dp"
          android:layout_width="30dp"
          android:layout_marginRight="5dp"
          android:layout_gravity="center_vertical"
          android:contentDescription="@layout/spinner_item"
          android:src="@drawable/circledsync" /&gt;
      &lt;de.util.FontDropDownTextView
          android:id = "@+id/spinner_dropdown_item_textView"
          style="?android:attr/spinnerDropDownItemStyle"
          android:singleLine="true"
          android:layout_width="0dp"
          android:layout_height="fill_parent"
          android:layout_weight="0.90"
          android:gravity="center_vertical"
          android:textColor="@color/spinner_text" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>i also use a custom array adapter:</p>
  
  <pre><code>public class MyArrayAdapter extends ArrayAdapter&lt;String&gt; {
  
      private int myTextId = 0; 
      private int myDropDownResource;
      private int myDropDownTextId;
      private int myResource;
  
      private LayoutInflater myInflater;
  
      public MyArrayAdapter(Context context, int textViewResourceId, List&lt;String&gt; names) {
          super(context, textViewResourceId, names);  
          myTextId = myDropDownTextId = textViewResourceId;// remember it, so we can find the real TextView
          myInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      }
  
      public MyArrayAdapter(Context context, int layoutId, int textViewResourceId, List&lt;String&gt; names) {
          super(context, layoutId, textViewResourceId, names);
          myTextId = myDropDownTextId = textViewResourceId;// remember it, so we can find the real TextView
          myResource = myDropDownResource = layoutId;
          myInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      }
  
      public void setDropDownViewResource(int resource) {
          super.setDropDownViewResource(resource);
          myDropDownResource = resource;
      }
  
      public void setDropDownViewResource(int resource, int textId) {
          super.setDropDownViewResource(resource);
          myDropDownResource = resource;
          myDropDownTextId = textId;
      }
  
      public View getView(int position, View convertView, ViewGroup parent) {
              View cell = MyGetView(position, convertView, parent, myResource, myTextId);
              setFontForChild(cell);
              return cell;
          }
  
      public View getDropDownView(int position, View convertView, ViewGroup parent) {
          View cell = MyGetView(position, convertView, parent, myDropDownResource, myDropDownTextId);
              setFontForChild(cell);
              return cell;
          }
  
      private void setFontForChild(View layoutCell)
      {
          View realTextView = layoutCell.findViewById(myTextId);
          if(realTextView instanceof TextView)
          {
              Typeface tf = Typeface.createFromAsset(
                  getContext().getAssets(),"fonts/calibri.otf");
              ((TextView)realTextView).setTypeface(tf);   
          }
          //else realTextView is null or is not a TextView.
      }
  
      private View MyGetView(int position, View convertView, ViewGroup parent,
              int resource, int fieldId) {
          View view;
          TextView text;
  
          if (convertView == null) {
              int res = (resource==0)? fieldId : resource;
              view = myInflater.inflate(res, parent, false);
          } else {
              view = convertView;
          }
  
          try {
              if (fieldId == 0) {
                  //  If no custom field is assigned, assume the whole resource is a TextView
                  text = (TextView) view;
              } else {
                  //  Otherwise, find the TextView field within the layout
                  text = (TextView) view.findViewById(fieldId);
              }
          } catch (ClassCastException e) {
              Log.e("ArrayAdapter", "You must supply a resource ID for a TextView");
              throw new IllegalStateException(
                      "ArrayAdapter requires the resource ID to be a TextView", e);
          }
  
          String item = getItem(position);
          if (item instanceof CharSequence) {
              text.setText((CharSequence)item);
          } else {
              text.setText(item);
          }
  
          return view;        
      }
  </code></pre>