Git Product home page Git Product logo

verticaltextview's Introduction

##android上可文字垂直显示的textview,可以设置文字起始方向,文字大小,文字换行符,文字边线,文字边线的方向等等。

image ###用法1

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical">

    <com.tenny.mystory.TextViewVertical
        android:layout_width="wrap_content"
        android:layout_height="300dp"
        app:v_start="left"
        app:v_text="最开始的时候,你并不熟悉这座陌生的城市,你甚至摸得到内心那种无法融入的恐慌和彷徨,据说这种感觉叫漂泊!!"
        app:v_textColor="#565656"
        app:v_textSize="18dp" />
</LinearLayout>

image ###用法2

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical">

    <com.tenny.mystory.TextViewVertical
        android:layout_width="wrap_content"
        android:layout_height="300dp"
        app:v_cutChars=","   <!--多个分隔符用|隔开-->
        app:v_line="right"
        app:v_lineColor="#5555"
        app:v_lineWidth="0.5dp"
        app:v_start="right"
        app:v_text="最开始的时候 你并不熟悉这座陌生的城市,你甚至摸得到内心那种无法融入的恐慌和彷徨,据说,这种感觉叫漂泊"
        app:v_textColor="#565656"
        app:v_textHorizontalMargin="18dp"
        app:v_textSize="18dp" />
</LinearLayout>

verticaltextview's People

Contributors

tenny1225 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.