Giter Club home page Giter Club logo

verticaltextview's Introduction

VerticalTextView

Extension of Android's TextView to draw the text vertically.

device-2014-10-24-151655

verticaltextview's People

Contributors

yoog568 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

verticaltextview's Issues

Calling requestLayout on setText

First of all: Many thanks for this very useful implementation of a vertical text view. I'm using it for a personal project as a label for my charts.

But I got the following problem:
If I dynamically change the text of the view programmatically to a text which is longer than the one before, the new text will not be displayed correctly (it will basically be cut of or squeezed). Therefore I also overwrite setText in my project:

 public void setText(String text) {
        super.setText(text);       
        requestLayout();
        // redraw view with new layout
        invalidate();
    }

I don't know if this is the right way to do it, but in my case it worked.
Also I'm not sure if this is the correct place to post such stuff, but I hope this might be helpfull for others.

multi-line not working

I try three lines in vertical text view and then it's visibility gone i used "\n" for new line.

Unable to inflate VerticalTextView in RecyclerView

I'm trying to show a RecyclerView(orientation - vertical) with each item as VerticalTextView (direction- down to top) but the items are not showing up.
I replaced the VerticalTextView with TextView, then it was showing.

How can I achieve this?

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.