2015-06-23 19 views

回答

1

上下文用於創建mInflater ArrayAdapter。 你可以在這裏看到源代碼。 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.0_r1/android/widget/ArrayAdapter.java#ArrayAdapter.0mInflater

private void More ...init(Context context, int resource, int textViewResourceId, List<T> objects) { 
270  mContext = context; 
271  mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 
272  mResource = mDropDownResource = resource; 
273  mObjects = objects; 
274  mFieldId = textViewResourceId; 
275 } 
相關問題