• Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created almost 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Round ImageView that works with vectors!

RoundImageView

A Round ImageView that works with vectors! Featuring:

  • Works with vectors!
  • Customisable border width
  • Customisable border color
  • Customisable icon color

Codacy Badge Android Arsenal Android Weekly

Install

Add Jitpack to your repositories in your build.gradle file

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

Add the below to your dependencies, again in your gradle.build file

implementation 'com.github.thomhurst:RoundImageView:{version}'

Sample

Comparison

Just to say - Absolutely no problem with these libraries, they are great.

Just wasn't working for me when I wanted a vector. :)

Code

<com.tomlonghurst.roundimageview.RoundImageView
            xmlns:app="http://schemas.android.com/apk/res-auto"
            android:layout_width="150dp"
            android:layout_height="150dp"
            app:riv_border_width="2dp"
            app:riv_border_color="#000000">

            <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:src="@drawable/ic_baseline_sentiment_very_satisfied_24px"
                    android:tint="@android:color/black"
                    android:scaleType="fitXY"/>

    </com.tomlonghurst.roundimageview.RoundImageView>

OR

<com.tomlonghurst.roundimageview.RoundImageView
            xmlns:app="http://schemas.android.com/apk/res-auto"
            android:layout_width="150dp"
            android:layout_height="150dp"
            app:riv_border_width="2dp"
            app:riv_border_color="#000000"
            app:riv_circle_placeholder_color="#000000"
            app:riv_circle_placeholder_drawable="@drawable/ic_baseline_sentiment_very_satisfied_24px">

        <ImageView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="fitXY"/>

    </com.tomlonghurst.roundimageview.RoundImageView>

Attributes

riv_border_width > Dimension/Size
riv_border_color > Color ID
riv_circle_background_color > Color ID
riv_circle_placeholder_color > Color ID
riv_circle_placeholder_drawable > Drawable ID

If you enjoy, please buy me a coffee :)

Buy Me A Coffee

More Repositories

1

TUnit

A modern, fast and flexible .NET testing framework
C#
1,057
star
2

ModularPipelines

Write your pipelines in C# !
C#
276
star
3

ExpandableHintText

A Pretty EditText for Android
Kotlin
184
star
4

Android-EditText-Validations

Easily Validate EditTexts
Kotlin
142
star
5

EnumerableAsyncProcessor

Process Multiple Asynchronous Tasks in Various Ways - One at a time / Batched / Rate limited / Concurrently
C#
113
star
6

BDTest

BDTest - A Testing Framework for .NET
C#
75
star
7

A-sync-RedisClient

An asynchronous Redis Client for .NET!
C#
38
star
8

ReadableTimeSpan

A TimeSpan that can be defined as a string in configuration files, and easy to read.
C#
21
star
9

Nupendencies

Automated NuGet Dependency Updater
C#
15
star
10

AllOf

Use Publish/Subscribe type classes without creating Publisher classes
C#
13
star
11

PullRequestScanner

A Github + Azure DevOps Pull Request Scanner that can notify Microsoft Team of current statuses - or plug in your own implementation!
C#
13
star
12

AsyncSemaphore

C#
10
star
13

ILogger.UnitTest.Verifier

Verify ILogger calls more easily.
C#
7
star
14

Selenium.PlaywrightDriver

Use Playwright as if it was a Selenium WebDriver
C#
5
star
15

NotifyValueChanged

A source generated approach, to turn your backing fields into properties that can fire events.
C#
3
star
16

EventMediator

A mediator for eventing - Source Generated publishers from your interfaces - Publish a message and it'll make sure all your subscribers get it
C#
3
star
17

SuspendingTasks

Suspending Tasks for removing callbacks in Android
Kotlin
2
star
18

Resilient-Fallback-Services

C#
2
star
19

MicrosoftDependencyInjection.ServiceInitialization

Initialize your Services on Start-up easily.
C#
2
star
20

Selenium.Extensions

C#
1
star
21

DotNet.HttpExtensions

Useful Extensions revolving around HTTP operations
C#
1
star
22

Selenium.BrowserRequestsWaitingWebDriver

A WebDriver that waits for pending browser requests to complete before continuing
C#
1
star
23

Azure-Service-Bus-Message-Mover

Replay or Move Messages to different buses
C#
1
star
24

ApplicationInsights.TelemetryLogger

An interface alternative TelemetryClient to facilitate testing via dependency inversion
C#
1
star
25

android-contextinjector

Inject Contexts in Fields without cluttering your onCreate !
Kotlin
1
star