@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void onAnimationUpdate(ValueAnimator animation) { iconView.setPadding( iconView.getPaddingLeft(), (Integer) animation.getAnimatedValue(), iconView.getPaddingRight(), iconView.getPaddingBottom() ); } });
private void setTopPadding(int topPadding) { if (type == Type.TABLET || isTitleless) { return; } iconView.setPadding( iconView.getPaddingLeft(), topPadding, iconView.getPaddingRight(), iconView.getPaddingBottom() ); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@Override public void setPadding(int left, int top, int right, int bottom) { super.setPadding(left, top, right, bottom); setup(); }
@NonNull @Override public Object instantiateItem(@NonNull ViewGroup container, int position) { AppCompatImageView imageView = new AppCompatImageView(container.getContext()); ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(WRAP_CONTENT, MATCH_PARENT); imageView.setLayoutParams(params); imageView.setPadding(12, 0, 12, 0); imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); container.addView(imageView); loadImage(imageView, position); return imageView; }