Currently working with Go as main programming language, develop backend services and supporting product SDK.
- Linkedin - https://www.linkedin.com/in/abdularis
- Medium - https://medium.com/@abdularis
Circle image view :red_circle: and Avatar image view :smiley: for android
License: Apache License 2.0
Currently working with Go as main programming language, develop backend services and supporting product SDK.
I am using Glide to load gifs.
Normal ImageView Playing gif but this library not playing gif.
Please support load image from url link. Thanks.
Hey! Thank you for this helpful library.
I was setting elevation to AvatarImageView, but it was not working.
<com.github.abdularis.civ.AvatarImageView
android:id="@+id/user_photo"
android:layout_width="108dp"
android:layout_height="108dp"
android:contentDescription="@string/user_pic"
android:elevation="5dp"
app:strokeColor="#f6835f"
app:strokeWidth="4dp"
app:text="A"
app:textColor="#f6835f" />
All other features are working fine.
Any help?
Hey, thanks for your work.
I'm using your library together with google library for databinding. This is my code:
<com.github.abdularis.civ.AvatarImageView
android:layout_width="@dimen/material_list_avatar_size"
android:layout_height="@dimen/material_list_avatar_size"
app:avatar_backgroundColor="@color/colorPrimaryDark"
app:avatar_text="@{item.firstLetterName())}"
app:avatar_textSize="22sp"
app:strokeColor="@android:color/black"
app:strokeWidth="1dp" />
This is the error I get after trying to build:
[kapt] An exception occurred: android.databinding.tool.util.LoggedErrorException: Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute 'app:avatar_text' with parameter type java.lang.String on com.github.abdularis.civ.AvatarImageView.
To solve this issue, I had to explicity declare a binding adapter:
class BindingAdapterUtils {
companion object {
@JvmStatic
@BindingAdapter("app:avatar_text")
fun setAvatarText(view: AvatarImageView, text: String) {
view.initial = text
}
}
}
After that everything works fine. It may be possible to include native support for databinding? So others users dont get the same error.
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.