/** * Sets the right handle icon to a given resource. * * <p>The resource should refer to a Drawable object, or use 0 to remove the icon. * * @param iconId the resource ID of the icon drawable * @param targetId the resource of the target drawable * @param barId the resource of the bar drawable (stateful) * @param tabId the resource of the */ public void setRightTabResources(int iconId, int targetId, int barId, int tabId) { mRightSlider.setIcon(iconId); mRightSlider.setTarget(targetId); mRightSlider.setBarBackgroundResource(barId); mRightSlider.setTabBackgroundResource(tabId); mRightSlider.updateDrawableStates(); }