Easy to use, lightweight custom image view with rounded corners.

Overview

Logo

RoundedImageView

Easy to use, lightweight custom image view with rounded corners.
Explore the docs »

View Demo · Report Bug · Request Feature

About The Project

Product Name Screen Shot

This library allows you to create ImageViews with soft edges that are pleasing to the eye.

Built With

Getting Started

To make this view running on your app follow these simple steps.

1. Add the JitPack repository to your project level build.gradle file

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

2. Add the dependency to your module level build.gradle file

dependencies {
  implementation 'com.github.mmmelik:RoundedImageView:v1.0.1'
}

Usage

RoundedImageView extends ImageView so all functions of ImageView are available for RoundedImageView.

Java


RoundedImageView roundedImageView=findViewById(R.id.roundedImageView);
roundedImageView.setRadius(5); //Sets radius of all corners
roundedImageView.setRadius(RoundedImageView.Corner.BOTTOM_LEFT,50); //Override BOTTOM_LEFT corner.
roundedImageView.setImageDrawable(getResources().getDrawable(R.drawable.free)); //First set radius then set drawable.

XML


<com.appbroker.roundedimageview.RoundedImageView
        android:id="@+id/roundedImageView"
        android:layout_width="wrap_content"
        android:layout_height="150dp"
        android:src="@drawable/free"
        app:radius="50dp"/>

<com.appbroker.roundedimageview.RoundedImageView
        android:id="@+id/roundedImageView2"
        android:layout_width="wrap_content"
        android:layout_height="150dp"
        android:src="@drawable/free"
        app:topLeftRadius="10dp"
        app:topRightRadius="20dp"
        app:bottomRightRadius="30dp"
        app:bottomLeftRadius="40dp"/>

<com.appbroker.roundedimageview.RoundedImageView
        android:id="@+id/roundedImageView3"
        android:layout_width="wrap_content"
        android:layout_height="150dp"
        android:src="@drawable/free"
        app:radius="50dp"
        app:bottomRightRadius="0dp"/>

Troubleshooting

In RoundedImageView XML attribute android:adjustViewBounds set to true by default. If it cause unintended behaviour of the view override with android:adjustViewBounds="false".

RoundedImageView does not manipulate drawable of the view. Only clips out the corners of the view. So make sure you have fully wrapped drawable with the views borders.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request
You might also like...
Image Picker for Android 🤖
Image Picker for Android 🤖

Image Picker for Android 🤖

ZoomableComposeImage - A zoomable image for jetpack compose

ZoomableComposeImage - A zoomable image for jetpack compose

ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image
ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image

compose-image-blurhash ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image while the real

load-the-image Apply to compose-jb(desktop), Used to load network and local pictures.

load-the-image load-the-image Apply to compose-jb(desktop), Used to load network and local pictures. 🚀 Under construction It may change incompatibly

Compose Image library for Kotlin Multiplatform.

Compose ImageLoader Compose Image library for Kotlin Multiplatform. Setup Add the dependency in your common module's commonMain sourceSet kotlin {

Custom shaped android imageview components
Custom shaped android imageview components

Shape Image View Provides a set of custom shaped android imageview components, and a framework to define more shapes. Implements both shader and bitma

An Android library for managing images and the memory they use.
An Android library for managing images and the memory they use.

Fresco Fresco is a powerful system for displaying images in Android applications. Fresco takes care of image loading and display, so you don't have to

An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.
An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.

Scrolling Image View An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.

Composablee function for simulate a 360º photo view

🐝 What's up! 🐱‍👤 Bugs360 🦟 🐞 Simulating a 360º view 🐛 🦗 With this you can work with pack of photos, simulating a 360º view 🦂 🕷 Made in 🦋 🐜

Releases(v1.0.1)
Owner
Melik Mehmet Özyildirim
Android falan
Melik Mehmet Özyildirim
An image loading and caching library for Android focused on smooth scrolling

Glide | View Glide's documentation | 简体中文文档 | Report an issue with Glide Glide is a fast and efficient open source media management and image loading

Bump Technologies 33.2k Jan 7, 2023
Android Asynchronous Networking and Image Loading

Android Asynchronous Networking and Image Loading Download Maven Git Features Kotlin coroutine/suspend support Asynchronously download: Images into Im

Koushik Dutta 6.3k Dec 27, 2022
A powerful image downloading and caching library for Android

Picasso A powerful image downloading and caching library for Android For more information please see the website Download Download the latest AAR from

Square 18.4k Jan 6, 2023
Image loading for Android backed by Kotlin Coroutines.

An image loading library for Android backed by Kotlin Coroutines. Coil is: Fast: Coil performs a number of optimizations including memory and disk cac

Coil 8.8k Jan 8, 2023
An Android transformation library providing a variety of image transformations for Glide.

Glide Transformations An Android transformation library providing a variety of image transformations for Glide. Please feel free to use this. Are you

Daichi Furiya 9.7k Dec 30, 2022
An android image compression library.

Compressor Compressor is a lightweight and powerful android image compression library. Compressor will allow you to compress large photos into smaller

Zetra 6.7k Jan 9, 2023
An Android transformation library providing a variety of image transformations for Picasso

Picasso Transformations An Android transformation library providing a variety of image transformations for Picasso. Please feel free to use this. Are

Daichi Furiya 1.7k Jan 5, 2023
Library to handle asynchronous image loading on Android.

WebImageLoader WebImageLoader is a library designed to take to hassle out of handling images on the web. It has the following features: Images are dow

Alexander Blom 102 Dec 22, 2022
Luban(鲁班)—Image compression with efficiency very close to WeChat Moments/可能是最接近微信朋友圈的图片压缩算法

Luban ?? English Documentation Luban(鲁班) —— Android图片压缩工具,仿微信朋友圈压缩策略。 Luban-turbo —— 鲁班项目的turbo版本,查看trubo分支。 写在前面 家境贫寒,工作繁忙。只能不定期更新,还望网友们见谅! 项目描述 目前做A

郑梓斌 13.1k Jan 7, 2023
🍂 Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.

?? Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.

Jaewoong Eum 1.4k Jan 2, 2023