Git Product home page Git Product logo

autotext's Introduction

autotext

说明

这是一个实现了文字自动排版功能的输入框,可根据用户输入的文字自动调整每行字体的大小以达到紧凑美观的效果。 类似Instagram的文字编辑功能

效果图

Instagram效果

本项目实现的效果

  1. 正常输入

  1. 中英文,数字,表情混合输入

  1. 极端输入

快速接入

  1. 在build.gradle添加依赖
dependencies {

    implementation 'com.hyh:autotext:1.0.0'
    
}
  1. 在需要实现文字自动排版功能的地方直接使用AutoEditText替代EditText就可以。具体可看sample项目。

实现原理

参考博客:https://blog.csdn.net/hyhlmy/article/details/88545104

autotext's People

Contributors

hyhdy avatar

Stargazers

vicyang avatar Rocky Lin avatar CloudClassroomClient avatar 免费围观 avatar  avatar YuQ avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  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.