Lines Matching defs:resource

41  * objects.  By default this class expects that the provided resource id references
44 * resource.
68 * The resource indicating what views to inflate to display the content of this
74 * The resource indicating what views to inflate to display the content of this
86 * If the inflated resource is not a TextView, {@code mFieldId} is used to find
88 * identifier that matches the one defined in the resource file.
110 * @param resource The resource ID for a layout file containing a TextView to use when
113 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) {
114 this(context, resource, 0, new ArrayList<>());
121 * @param resource The resource ID for a layout file containing a layout to use when
123 * @param textViewResourceId The id of the TextView within the layout resource to be populated
125 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource,
127 this(context, resource, textViewResourceId, new ArrayList<>());
134 * @param resource The resource ID for a layout file containing a TextView to use when
138 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull T[] objects) {
139 this(context, resource, 0, Arrays.asList(objects));
146 * @param resource The resource ID for a layout file containing a layout to use when
148 * @param textViewResourceId The id of the TextView within the layout resource to be populated
151 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource,
153 this(context, resource, textViewResourceId, Arrays.asList(objects));
160 * @param resource The resource ID for a layout file containing a TextView to use when
164 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource,
166 this(context, resource, 0, objects);
173 * @param resource The resource ID for a layout file containing a layout to use when
175 * @param textViewResourceId The id of the TextView within the layout resource to be populated
178 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource,
182 mResource = mDropDownResource = resource;
334 * to create views from the resource passed to the constructor.
375 @Nullable View convertView, @NonNull ViewGroup parent, int resource) {
380 view = inflater.inflate(resource, parent, false);
387 // If no custom field is assigned, assume the whole resource is a TextView
400 Log.e("ArrayAdapter", "You must supply a resource ID for a TextView");
402 "ArrayAdapter requires the resource ID to be a TextView", e);
416 * <p>Sets the layout resource to create the drop down views.</p>
418 * @param resource the layout resource defining the drop down views
421 public void setDropDownViewResource(@LayoutRes int resource) {
422 this.mDropDownResource = resource;