Skip to content

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

Notifications You must be signed in to change notification settings

hanihussein/RoundedCornersImageSample

Repository files navigation

*# 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));

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages