akashjaindev / imagelettericon Goto Github PK
View Code? Open in Web Editor NEWMaterial letter icon with circle background. Also supports for image for user contact.
License: Apache License 2.0
Material letter icon with circle background. Also supports for image for user contact.
License: Apache License 2.0
I am using material letter for coordinatorlayout with animation. Now I have also avatar image which is displayed if image is available. Now When I am animating it with corodrinator layout , it is changing to letter view. There should be some way with that once Image is loaded, it should not change to letter icon.
On the release's page, the latest stable release is v1.2
In the readme it is v1.8
v1.8 is broken for support libs 26> because attr/tint
is duplicated. I searched issues and saw you stated there exists v1.14 but nowhere is any mention about this.
v1.14 is working, so please update readme and project description.
Some developers including myself, actively using this library.
AAPT: error: duplicate value for resource 'attr/corner_radius' with config ''.
In your readme you are indicating to use:
dependencies {
compile 'com.imageletter:ImageLetterIcon:1.0'
}
Checking the pom file in jcenter it seems to be:
compile 'com.github.akashandroid90:image-letter-icon:1.0'
I guess that you need to change the attr "tint" and "background_tint" names!
Can you please check for this?
Thank you.
https://github.com/akashandroid90/ImageLetterIcon/blob/master/imageletter/build.gradle has a dependency on appcompat-v7
. However, I do not see anything in the code that requires this dependency โ you do not seem to have any import
statements pulling in appcompat-v7
classes, nor are you referencing any appcompat-v7
resources.
If you remove this dependency, it will simplify the use of this library by projects that are not using appcompat-v7
or, for various reasons, want a version different than the one that your Gradle file requests.
Thanks!
Hi,
I have the following use case:
The flow:
I am using the same ImageView for all 3 cases. The ImageView is a MaterialLetterIcon.
The problem:
Example:
Solutions:
Version of lib:
What solution / approach do you suggest?
Thank you.
I can only see the sample of using it...
Is it possible to put an image inside the MaterialLetterIcon , that won't be shaped, meaning show as it is?
This is useful in cases that there are no letters or images available for the item. Can also be useful for the case of loading the image, yet not having any letter to show during this time.
Is it possible to add a border (AKA outline/stroke) around the shape, including color and width?
Is it possible to add elevation to the MaterialLetterIcon ?
I know that it's possible to add a rounded one using this:
public static void setOvalElevationToView(final View view) {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
view.setOutlineProvider(new ViewOutlineProvider() {
@TargetApi(VERSION_CODES.LOLLIPOP)
@Override
public void getOutline(View view, Outline outline) {
final int size = view.getWidth();
outline.setOval(0, 0, size, size);
}
});
}
But it's only from Lollipop, and only for rounded ones
Android Studio 3.0, error project build, " duplicate value for resource 'attr/tint' with config'" " with this library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.