Skip to content

Commit

Permalink
兼容低版本圆角图片
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric3023 committed May 1, 2019
1 parent eda765e commit fd670a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public boolean isViewFromObject(View view, Object object) {
public Object instantiateItem(ViewGroup container, int position) {
if (isCard) {
CardView cardView = (CardView) View.inflate(context, R.layout.item_pager, null);
cardView.setRadius(radius);
cardView.setBackgroundColor(Color.TRANSPARENT);
cardView.setCardElevation(elevation);
cardView.setContentPadding(padding, padding, padding, padding);
RoundImageView imageView = cardView.findViewById(R.id.item_page_imageview);
Expand Down

0 comments on commit fd670a1

Please sign in to comment.