Giter Site home page Giter Site logo

vellrya / compositionavatar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yiiguxing/compositionavatar

0.0 1.0 0.0 9.94 MB

Android composition avatar. 仿QQ讨论组头像

Home Page: https://www.jianshu.com/p/349aa6153fcc

License: MIT License

Java 100.00%

compositionavatar's Introduction

CompositionAvatar

Android composition avatar

仿QQ讨论组头像

  • 基础

 基础

  • 动态增减图像

    动态

  • 动态设置间距

    动态

  • 动画图像

    动画

  • Drawable状态(如点击状态)(selector)

    状态

  • 矢量图

    状态

使用

  1. 添加 JitPack 仓库地址到项目构建文件 - build.gradle:

    allprojects {
      repositories {
        ...
        maven { url 'https://jitpack.io' }
      }
    }
  2. 添加依赖:

    dependencies {
      compile 'com.github.YiiGuxing:CompositionAvatar:v1.0.4'
    }
  3. xml 上使用:

    <cn.yiiguxing.compositionavatar.CompositionAvatarView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="100dp"
        android:layout_height="wrap_content"
        app:fitType="CENTER"
        app:gap="0.25"/>
        <!-- 默认fitType为CENTER -->
        <!-- 默认gap为0.25 -->

    详细请看 sample

compositionavatar's People

Contributors

yiiguxing avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.