GithubHelp home page GithubHelp logo

stickerview's Introduction

StickView

图片标签处理

Screenshots

##Feature

  • 支持缩放(最小缩放),平移,并生成处理后的图片.
  • 支持便签数量无限制(较多可能存在性能问题)
  • 支持文字标签(实质文字转换成图片)

##Issue

  • StickView scaleType must be fitCenter,cause compose bitmap base only fitCenter scaleType.
  • 卡顿问题,对比其他相同标签图片lib,本库流畅度明显比较差.(需查出并更正)
  • 锯齿问题,图片生成会出现锯齿(需查出并更正)

Similar(recommend)

sample 本地标签的实现方案

app需初始化一批标签在本地,具体的做法是:

  • 将标签图片以目录文件的形式存放在assets中的water目录下(其中每个category为一个目录). 将含有标签图片分组信息的数据库waterMark.db存放在assets根目录下(具体信息有分组,id,categoryId,名字,url)
  • 程序启动时将assets中water目录整体拷贝到sdcard指定目录,以便后面读取.
  • 初始化标签布局页面时,读取.../packageName/data/database/waterMark.db(不存在,则从assets拷贝)相关信息初始.

Gradle

compile 'com.yovenny.StickView:sticklib:1.0.0'

##Usage

###*incode*

   mSticker.outsideRadium(14).insideRadium(9).stickWidth(150).strokeWidth(2);
                      

*in xml*

       <com.yovenny.sticklib.StickerSeriesView
                  android:background="#131413"
                  android:scaleType="fitCenter"
                  android:id="@+id/process_sticker"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" />

About me

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.