ShapeLetter

Additional

Language
Java
Version
N/A
Created
Jan 21, 2017
Updated
Jan 21, 2017 (Retired)
Owner
Karanveer (karanvs)
Contributor
Karanveer (karanvs)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

shapeletter

shapeletter is a simple view that displays a letter within circle or rectangle much like the gmail app.

Getting Started

  • Add this to build.gradle
allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }
  • Add dependency for library
dependencies {
         compile 'com.github.karanvs:shapeletter:v1.0'
 }

Usage

 <com.veer.shapeletter.ShapeLetter
        xmlns:shpltr="http://schemas.android.com/apk/res-auto"
        android:layout_width="56dp"
        android:layout_height="56dp"
        shpltr:letter="B"
        shpltr:letter_size="20dp"
        shpltr:letter_color="@color/colorPrimaryDark"
        shpltr:shape="rect"        //you can use oval as alternative
        shpltr:shape_color="@color/colorAccent"
        />

License

This project is licensed under the Apache 2.0 License - see the LICENSE.txt file for details