Lines Matching defs:id
149 int id = a.getResourceId(com.android.internal.R.styleable.LayerDrawableItem_id,
168 addLayer(dr, id, left, top, right, bottom);
176 * Add a new layer to this drawable. The new layer is identified by an id.
179 * @param id The id of the new layer.
185 private void addLayer(Drawable layer, int id, int left, int top, int right, int bottom) {
201 childDrawable.mId = id;
213 * Look for a layer with the given id, and returns its {@link Drawable}.
215 * @param id The layer ID to search for.
216 * @return The {@link Drawable} of the layer that has the given id in the hierarchy or null.
218 public Drawable findDrawableByLayerId(int id) {
222 if (layers[i].mId == id) {
234 * @param id The ID to assign to the layer.
236 public void setId(int index, int id) {
237 mLayerState.mChildren[index].mId = id;
260 * Returns the id of the specified layer.
264 * @return The id of the layer or {@link android.view.View#NO_ID} if the layer has no id.
271 * Sets (or replaces) the {@link Drawable} for the layer with the given id.
273 * @param id The layer ID to search for.
276 * the id was not found).
278 public boolean setDrawableByLayerId(int id, Drawable drawable) {
282 if (layers[i].mId == id) {