Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.03 KB

*# Version 1 *

RoundedCornersImageSample

I create this sample to help developers to create imageview with rounded corners.

To Use It :-

First Set RoundedImageView in your Layout like this :-

then set this line "xmlns:RoundedCornersImageView="http://schemas.android.com/apk/res-auto" in your parent layout

and And these lines in attrs file in /values. # Note if there 's no attrs file create it

<attr name="corners" format="dimension" />
And Finally you can use it in your activity

private RoundedCornersImageView roundedCornersImageView;

roundedCornersImageView = (RoundedCornersImageView) findViewById(R.id.imageView);

roundedCornersImageView.setImageDrawable(getDrawable(R.drawable.pic_1));