Lines Matching defs:resource

34  * objects.  By default this class expects that the provided resource id references
37 * resource.
63 * The resource indicating what views to inflate to display the content of this
69 * The resource indicating what views to inflate to display the content of this
75 * If the inflated resource is not a TextView, {@link #mFieldId} is used to find
77 * identifier that matches the one defined in the resource file.
100 * @param resource The resource ID for a layout file containing a TextView to use when
103 public ArrayAdapter(Context context, int resource) {
104 init(context, resource, 0, new ArrayList<T>());
111 * @param resource The resource ID for a layout file containing a layout to use when
113 * @param textViewResourceId The id of the TextView within the layout resource to be populated
115 public ArrayAdapter(Context context, int resource, int textViewResourceId) {
116 init(context, resource, textViewResourceId, new ArrayList<T>());
123 * @param resource The resource ID for a layout file containing a TextView to use when
127 public ArrayAdapter(Context context, int resource, T[] objects) {
128 init(context, resource, 0, Arrays.asList(objects));
135 * @param resource The resource ID for a layout file containing a layout to use when
137 * @param textViewResourceId The id of the TextView within the layout resource to be populated
140 public ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects) {
141 init(context, resource, textViewResourceId, Arrays.asList(objects));
148 * @param resource The resource ID for a layout file containing a TextView to use when
152 public ArrayAdapter(Context context, int resource, List<T> objects) {
153 init(context, resource, 0, objects);
160 * @param resource The resource ID for a layout file containing a layout to use when
162 * @param textViewResourceId The id of the TextView within the layout resource to be populated
165 public ArrayAdapter(Context context, int resource, int textViewResourceId, List<T> objects) {
166 init(context, resource, textViewResourceId, objects);
308 private void init(Context context, int resource, int textViewResourceId, List<T> objects) {
311 mResource = mDropDownResource = resource;
318 * to create views from the resource passed to the constructor.
366 int resource) {
371 view = mInflater.inflate(resource, parent, false);
378 // If no custom field is assigned, assume the whole resource is a TextView
385 Log.e("ArrayAdapter", "You must supply a resource ID for a TextView");
387 "ArrayAdapter requires the resource ID to be a TextView", e);
401 * <p>Sets the layout resource to create the drop down views.</p>
403 * @param resource the layout resource defining the drop down views
406 public void setDropDownViewResource(int resource) {
407 this.mDropDownResource = resource;