예제 #1
0
 public AbsSpinner(android.content.Context context, android.util.AttributeSet attrs
                   , int defStyle) : base(context, attrs, defStyle)
 {
     mRecycler = new android.widget.AbsSpinner.RecycleBin(this);
     initAbsSpinner();
     android.content.res.TypedArray a = context.obtainStyledAttributes(attrs, [email protected]
                                                                       .styleable.AbsSpinner, defStyle, 0);
     java.lang.CharSequence[] entries = a.getTextArray([email protected]_entries
                                                       );
     if (entries != null)
     {
         android.widget.ArrayAdapter <java.lang.CharSequence> adapter = new android.widget.ArrayAdapter
                                                                        <java.lang.CharSequence>(context, [email protected]_spinner_item
                                                                                                 , entries);
         adapter.setDropDownViewResource([email protected]_spinner_dropdown_item
                                         );
         setAdapter(adapter);
     }
     a.recycle();
 }