RoundedLetterView

Android Arsenal

Download

RoundedLetterView like the one in Android 5.0 Contacts app

RoundedLetterView

Attributes to choose from:

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.