GithubHelp home page GithubHelp logo

15922813734 / verticaltextview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yifei8/verticaltextview

0.0 1.0 0.0 202 KB

Android 垂直TextView(Vertical TextView),文字垂直显示文本

Kotlin 30.65% Java 69.35%

verticaltextview's Introduction

VerticalTextView

Demo

demo.gif

implementation "com.sjtu.yifei:vertical-textview:1.4.1"

最新版本

Download

参数说明

参数 类型 说明
text string&reference 文本
textColor color&reference 字体颜色
textSize dimension&reference 字体大小
rowSpacing dimension&reference 行间距
columnSpacing dimension&reference 列间距
columnLength integer 一列文字的长度,建议使用该属性来限制高度
maxColumns integer 最大限制的列数,超出的部分使用纵向省略号
atMostHeight boolean 默认true,使用确定高度值时,会对纵向尾部不够文字多出的空白会自动去掉,使用时如果强制显示这种空白需要设置为false
isCharCenter boolean 默认true,true表示文字使用Paint.Align.CENTER ,false表示文字使用Paint.Align.LEFT
textStyle 枚举0/1/2 normal/bold/italic

verticaltextview's People

Contributors

yifei8 avatar

Watchers

 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.