@Test public void testSetRemoveDrawable() { Drawable drawable = mock(Drawable.class); mWaypointItem.setRemoveDrawable(drawable); assertEquals(drawable, mWaypointItem.getRemoveDrawable()); }
public void setRemoveDrawable(final Drawable removeIcon) { mRemoveIcon.setBackground(removeIcon); }
WaypointItem extends RelativeLayout { public void setRemoveDrawable(final Drawable removeIcon) { mRemoveIcon.setBackground(removeIcon); } }
WaypointItem extends RelativeLayout { public void setRemoveDrawable(final Drawable removeIcon) { mRemoveIcon.setBackground(removeIcon); } WaypointItem(final Context context);  WaypointItem(final Context context, final AttributeSet attrs);  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); }
WaypointItem extends RelativeLayout { public void setRemoveDrawable(final Drawable removeIcon) { mRemoveIcon.setBackground(removeIcon); } WaypointItem(final Context context);  WaypointItem(final Context context, final AttributeSet attrs);  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); Drawable getRemoveDrawable(); void setRemoveDrawable(final Drawable removeIcon); Drawable getDragDrawable(); void setDragDrawable(final Drawable dragIcon); WaypointEntry getWaypointEntry(); void setWaypointEntry(final WaypointEntry entry); boolean isDragEnabled(); void setDragEnabled(final boolean dragEnabled); boolean isRemoveEnabled(); void setRemoveEnabled(final boolean removeEnabled); void setListener(final WaypointItem.Listener listener); }
WaypointItem extends RelativeLayout { public void setRemoveDrawable(final Drawable removeIcon) { mRemoveIcon.setBackground(removeIcon); } WaypointItem(final Context context);  WaypointItem(final Context context, final AttributeSet attrs);  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); Drawable getRemoveDrawable(); void setRemoveDrawable(final Drawable removeIcon); Drawable getDragDrawable(); void setDragDrawable(final Drawable dragIcon); WaypointEntry getWaypointEntry(); void setWaypointEntry(final WaypointEntry entry); boolean isDragEnabled(); void setDragEnabled(final boolean dragEnabled); boolean isRemoveEnabled(); void setRemoveEnabled(final boolean removeEnabled); void setListener(final WaypointItem.Listener listener);  }