RoundedLetterView like the one in Android 5.0 Contacts app

Overview

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.
Comments
  • not found library

    not found library

    Error:(9) No resource identifier found for attribute 'backgroundColorValue' in package 'com.example.app' Error:(9) No resource identifier found for attribute 'titleColor' in package 'com.example.app' Error:(9) No resource identifier found for attribute 'titleSize' in package 'com.example.app' Error:(9) No resource identifier found for attribute 'titleText' in package 'com.example.app' Error:(13, 35) No resource found that matches the given name (at 'backgroundColorValue' with value '@color/green').

    And I have added, compile 'com.github.pavlospt:roundedletterview:1.1' but android studio did not find the library.

    opened by tonilopezmr 18
  • Error compiling RoundLetter Widget

    Error compiling RoundLetter Widget

    get this error when i try to compile my code with the library

    Information:Gradle tasks [:app:assembleDebug]


    Error:(11) No resource identifier found for attribute 'rlv_backgroundColorValue' in package 'com.iceteck.mobilemarts' Error:(11) No resource identifier found for attribute 'rlv_titleColor' in package 'com.iceteck.mobilemarts' Error:(11) No resource identifier found for attribute 'rlv_titleSize' in package 'com.iceteck.mobilemarts' Error:(11) No resource identifier found for attribute 'rlv_titleText' in package 'com.iceteck.mobilemarts' Error:Execution failed for task ':app:processDebugResources'.

    I need help with this please.

    opened by larrytech7 7
  • Cannot use as a library

    Cannot use as a library

    I'm trying to use it as a library but I get :

    Error:(9) No resource identifier found for attribute 'backgroundColorValue' in package 'teo.ram.css' Error:(9) No resource identifier found for attribute 'titleColor' in package 'teo.ram.css' Error:(9) No resource identifier found for attribute 'titleSize' in package 'teo.ram.css' Error:(9) No resource identifier found for attribute 'titleText' in package 'teo.ram.css'

    I have already added the dependency in my build.gradle file :

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

    At your Sample App code you just add the code as a java file :

    https://github.com/pavlospt/RoundedLetterView/blob/master/RoundedLetterView_SampleApp/app/src/main/java/gr/vanderbox/roundedletterview_sampleapp/view/RoundedLetterView.java

    opened by codeteo 6
  • Cannot Use Your Library

    Cannot Use Your Library

    i cannot use this library same errors like above post are coming.

    My Dependency file:

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.3"
    
        defaultConfig {
            applicationId "com.vishalchugh.krazysum"
            minSdkVersion 15
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:23.3.0'
        compile 'com.android.support:cardview-v7:23.3.0'
        compile 'com.mcxiaoke.volley:library:1.0.19'
        compile 'com.android.support:support-v4:23.3.0'
        compile 'com.android.support:design:23.3.0'
        compile 'com.github.pavlospt:roundedletterview:1.1'
    }
    
    

    XML Code :

       <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:orientation="horizontal">
    
            <com.github.pavlospt.RoundedLetterView xmlns:app="http://schemas.android.com/apk/res-auto"
                android:id="@+id/rlv_name_view"
                android:layout_width="56dp"
                android:layout_height="56dp"
                app:backgroundColorValue="@color/green"
                app:titleColor="@android:color/white"
                app:titleSize="35dp"
                app:titleText="A" />
    
        </LinearLayout>
    

    Error: C:\Users\Vishal Chugh\AndroidStudioProjects\myandroidprojects\KrazySum\app\src\main\res\layout\activity_play_field.xml Error:(237) No resource identifier found for attribute 'backgroundColorValue' in package 'com.vishalchugh.krazysum' Error:(237) No resource identifier found for attribute 'titleColor' in package 'com.vishalchugh.krazysum' Error:(237) No resource identifier found for attribute 'titleSize' in package 'com.vishalchugh.krazysum' Error:(237) No resource identifier found for attribute 'titleText' in package 'com.vishalchugh.krazysum' Error:Execution failed for task ':app:processDebugResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android\sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

    Please Help

    opened by vishal-chugh 3
  • Show tick mark

    Show tick mark

    It would be nice if the library contains a method to swap the letter with a tick mark and grey/custom background like in the gmail app when an email is selected.

    opened by royale1223 2
  • Don't repainting after setBackgroundColor in onClick

    Don't repainting after setBackgroundColor in onClick

    When I’m trying to update background color from OnClick it doesn`t work(nothing happens):

    ivCircle1.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    ivCircle1.setBackgroundColor(Color.CYAN);
                }
            });
    

    But if I will doing something like that (adding title): it will repaint

    ivCircle1.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    ivCircle1.setTitleText(ivCircle1.getTitleText());
                    ivCircle1.setBackgroundColor(Color.CYAN);
                }
            });
    
    
    opened by yandroidUA 1
Owner
Pavlos-Petros Tournaris
Android GDE - Senior Full Stack Eng. @bluegroundltd Previous: Mobile Tech Lead @Workable
Pavlos-Petros Tournaris
Include MatchTextView and MatchButton..Come..you will like it

Android MatchView This project is learned from (https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh) . Thanks for liaohuqiu.. I like the animat

Roger 858 Dec 7, 2022
An easy, flexible way to add a shimmering effect to any view in an Android app.

Shimmer for Android Shimmer is an Android library that provides an easy way to add a shimmer effect to any view in your Android app. It is useful as a

Facebook 5.1k Dec 31, 2022
A TextView that simulates the effect from the app Secret where the characters fade in/out at different speeds.

SecretTextView A TextView that simulates the effect from the app Secret where the characters fade in/out at different speeds. How To Use Use it just l

Matt Kula 611 Nov 7, 2022
() An Android TextView with a shimmering effect

Shimmer for Android This library is DEPRECATED, as I don't have time to mainatin it anymore. But feel free to go through the code and copy that into y

Romain Piel 2k Jan 9, 2023
() Android experiment showing a sinking TextView

Titanic for Android This library is DEPRECATED, as I don't have time to mainatin it anymore. But feel free to go through the code and copy that into y

Romain Piel 1.8k Dec 15, 2022
:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0

LIBRARY IS NO LONGER MAINTAINED If you want to adopt + maintain this library, please drop me a message - [email protected] Android Full Justific

Mathew Kurian 1.9k Dec 29, 2022
This is based on an open source autosizing textview for Android.

SizeAdjustingTextView This is based on an open source autosizing textview for Android I found a few weeks ago. The initial approach didn't resize mult

Elliott Chenger 255 Dec 29, 2022
A editable text with a constant text/placeholder for Android.

ParkedTextView A EditText with a constant text in the end. How to use <com.goka.parkedtextview.ParkedTextView xmlns:app="http://schemas.android.co

goka 270 Nov 11, 2022
Android Library to make it easy to create CodeEditor or IDE that support any languages and themes

CodeView Android Library to make it easy to create your CodeEditor or IDE for any programming language even for your programming language, just config

Amr Hesham 294 Jan 6, 2023
RoundedLetterView like the one in Android 5.0 Contacts app

RoundedLetterView RoundedLetterView like the one in Android 5.0 Contacts app Attributes to choose from: rlv_titleText - The text in the first row. rlv

Pavlos-Petros Tournaris 651 Dec 30, 2022
A library which will save you a lot of time from writing the same intent creation code. it consist of many intent creation codes like Share, Contacts, Email and etc, which you can easily use.

Android-Intent-Library A library which will save you a lot of time from writing the same intent creation code. it consist of many intent creation code

Next 67 Aug 24, 2022
A Free, open source Contacts Butler App built with kotlin

Contacts Butler Do you have a bunch of contacts that are missing a lot of info such as names, emails, phone numbers, etc? Do you really know the conta

Android Contacts Butlers 1 Nov 30, 2021
A modern contacts Android API.

A modern contacts Android API.

Alex Styl 410 Jan 3, 2023
Allows usage of vCard resources with the Android contacts provider

vcard4android vcard4android is an Android library that brings together VCard and Android. It's a framework for parsing and generating VCard resources

bitfire web engineering 7 Dec 15, 2022
Android Contacts API Library written in Kotlin with Java interoperability.

Android Contacts API Library written in Kotlin with Java interoperability. No more ContentProviders and cursors. Say goodbye to ContactsContract. Build your own contacts app!

Vandolf Estrellado 463 Jan 2, 2023
Google one tap sign in - Flutter Google One Tap Sign In (Android)

Google One Tap Sign In Google One Tap Sign In (Android) A Flutter Plugin for Google One Tap Sign In Getting Started To access Google Sign-In, you'll n

null 6 Nov 23, 2022
All news in one place - one application

nuntiumNewsApp Nuntium | Daily News App Nuntuim news app is a personalised news aggregator that organises and highlights what’s happening in the world

Ro'ziboyev Ismoil 1 Dec 3, 2021
You can store all your password, bank details, card details in one place and remember only one master PIN. The application works totally offline.

Keep Password An application where you can store all your password, bank details, card details in one place and remember only one master PIN. The appl

rıdvan 4 Apr 18, 2022
Techbee e.U. 62 Jan 31, 2023