Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 1.13 KB

File metadata and controls

46 lines (41 loc) · 1.13 KB

RoundedCornerImageView


In some cases, you need to make your image with rounded corner. But Glide may be limited, the rounded corner may disappear when image scaled. So this library came to fix this problem.



Example


xml code

<com.comix.rounded.RoundedCornerImageView
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/imageView1"
    android:layout_width="60dp"
    android:layout_height="60dp"
    android:layout_gravity="center_horizontal"
    android:layout_marginTop="16dp"
    app:cornerBottomDisable="false"
    app:cornerLeftDisable="false"
    app:cornerRightDisable="false"
    app:cornerTopDisable="false"
    app:cornerColor="@android:color/white"
    app:cornerRadius="6dp"
    />

Installation

Gradle

allprojects {
  repositories {
        mavenCentral()
      //or
      //jcenter()
  }
}
dependencies {
        compile 'com.github.zjywill:roundedcornerimageview:1.1.0'
}