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
An all-in-one Jetpack Compose component to handle text styling inside TextFields

An all-in-one Jetpack Compose component to handle text styling inside TextFields

Paweł Chochura 26 Dec 14, 2022
Android's TextView that can expand/collapse like the Google Play's app description

ExpandableTextView ExpandableTextView is an Android library that allows developers to easily create an TextView which can expand/collapse just like th

Manabu S. 4k Dec 28, 2022
A library to show emoji in TextView, EditText (like WhatsApp) for Android

Discontinued This projected is discontinued. Please consider using other alternative, i.e EmojiCompat. Contact me if you want to continue working on a

Hieu Rocker 3.6k Jan 5, 2023
Awesome Android Typeahead library - User mention plugin, UI widget for auto complete user mention using the at sign (@) like Twitter or Facebook.

android-typeahead Awesome Android Typeahead library - User mention plugin, UI widget for auto complete user mention using the at sign (@) like Twitter

Arab Agile 11 Jun 4, 2019
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 Android App example of how to create a custom EditText using DoubleLinkedList Data Structure

DoubleLinkedListEditText Library This is a library to create an EditText based on the Doubly Linked List data structure so that the user can enter cod

Layon Martins 1 Nov 9, 2021
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
RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android.

RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android. Looking for iOS? Check out cjwirth/RichEditorView Supported Functions Bold

Daichi Furiya 6k Jan 2, 2023
MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.

MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.

Feras Alnatsheh 1k Dec 20, 2022
Android experiment showing a sinking TextView

Titanic is an Android experiment reproducing this effect.

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
Android form edit text is an extension of EditText that brings data validation facilities to the edittext.

Android Form EditText Android form edit text is an extension of EditText that brings data validation facilities to the edittext. Example App I built a

Andrea 1.5k Dec 14, 2022
Gmail style MultiAutoCompleteTextView for Android

Version 3.0 The 3.0.1 version is now available! This should resolve a number of text handling issues and lay the groundwork for better support of mixe

Splitwise 1.3k Nov 14, 2022
Advanced Android TextView

Advanced Android TextView Companion app for my Advanced Android TextView talk, demostrating: Animated CompoundDrawable Text shadow Custom font Non-bre

Chiu-Ki Chan 1.2k Dec 9, 2022
[DISCONTINUED] Rrich text editor for android platform. 安卓富文本编辑器,暂停维护

icarus-android Maybe the best rich text editor on android platform. Base on Simditor Features Alignment (left/center/right) Bold Blockquote Code Horiz

Dyson Woo 739 Sep 5, 2022
Android Bubble View

BubbleTextView Custom arrow position Custom fillet radius Custom background color Can be placed anywhere Two default style Two default theme Snapshot

null 669 Nov 11, 2022
A Material Android password view that toggles password visibility via an eye icon.

8/17/2016: As of about an hour ago, this library is deprecated! Support for password visibility is now included in the Design Support Library in TextI

Lisa Wray 715 Dec 29, 2022
Android library contain custom realisation of EditText component for masking and formatting input text

Masked-Edittext Masked-Edittext android library EditText widget wrapper add masking and formatting input text functionality. Install Maven <dependency

Evgeny Safronov 600 Nov 29, 2022
Circular timer on Android platform.

CircleTimerView [No Longer Support] Circle timer on Android platform. System Requirement Android v2.2+ TODO Developed by AndroidStudio Usage <com.gith

Abbott 515 Nov 19, 2022