RoundedLetterView

RoundedLetterView like the one in Android 5.0 Contacts app

License

License

GroupId

GroupId

com.github.pavlospt
ArtifactId

ArtifactId

roundedletterview
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

RoundedLetterView
RoundedLetterView like the one in Android 5.0 Contacts app
Project URL

Project URL

https://github.com/pavlospt/RoundedLetterView
Source Code Management

Source Code Management

https://github.com/pavlospt/RoundedLetterView

Download roundedletterview

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.pavlospt/roundedletterview/ -->
<dependency>
    <groupId>com.github.pavlospt</groupId>
    <artifactId>roundedletterview</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.pavlospt/roundedletterview/
implementation 'com.github.pavlospt:roundedletterview:1.3'
// https://jarcasting.com/artifacts/com.github.pavlospt/roundedletterview/
implementation ("com.github.pavlospt:roundedletterview:1.3")
'com.github.pavlospt:roundedletterview:jar:1.3'
<dependency org="com.github.pavlospt" name="roundedletterview" rev="1.3">
  <artifact name="roundedletterview" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.pavlospt', module='roundedletterview', version='1.3')
)
libraryDependencies += "com.github.pavlospt" % "roundedletterview" % "1.3"
[com.github.pavlospt/roundedletterview "1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

RoundedLetterView

Android Arsenal

Download

RoundedLetterView like the one in Android 5.0 Contacts app

RoundedLetterView

Attributes to choose from:

  • rlv_titleText - The text in the first row.
  • rlv_titleSize - The size of the first row text.
  • rlv_titleColor - The color of the first row text.
  • rlv_backgroundColorValue - the color between the circle and the stroke.

Example

 <com.github.pavlospt.roundedletterview.RoundedLetterView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/rlv_name_view"
        android:layout_width="56dp"
        android:layout_height="56dp"
        android:layout_marginStart="15dp"
        app:backgroundColorValue="@color/green" (rlv_backgroundColorValue in v1.1)
        app:titleColor="@android:color/white" (rlv_titleColor in v1.1)
        app:titleSize="35dp" (rlv_titleSize in v1.1)
        app:titleText="A" /> (rlv_titleText in v1.1)

What's new

v1.0: Initial Commit

v1.1: Ability to set custom Font on the Text using a Typeface object. setTypeface(font: Typeface)

Migrating from 1.0 to 1.1

If you are using version 1.1 you have to add the prefix rlv_ before each attribute.

How To Use

compile 'com.github.pavlospt:roundedletterview:1.3'

Credits

Author : Pavlos-Petros Tournaris ([email protected])

Google+ : +Pavlos-Petros Tournaris

Facebook : Pavlos-Petros Tournaris

LinkedIn : Pavlos-Petros Tournaris

(In case you use this in your app let me know to make a list of apps that use it! )

License

Copyright 2014 Pavlos-Petros Tournaris

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
1.3
1.2
1.1
1.0