• How to justify text of TextView in Android (JustifiedTextView)

    JustifiedTextView is an Android View that justifies the Text!
    alt landscape
    alt portrait
    ##Usage
    You just have to add the view in your layout:
    <com.codesgood.views.JustifiedTextView
            android:text="@string/lorem_ipsum"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="15sp"/>
    And that's it! the text contained in the JustifiedTextView view will be justified. (In this example I wrote 15sp as textSize, but you can use a different textSize and it won't be a problem).
    ##Add JustifiedTextView to your project
    JustifiedTextView is available on Maven Central. Please ensure that you are using the latest version by checking here
    Gradle:
    compile 'com.codesgood:justifiedtextview:1.0.2'
    
    Maven:
    <dependency>
        <groupId>com.codesgood</groupId>
        <artifactId>justifiedtextview</artifactId>
        <version>1.0.2</version>
    </dependency>
  • 1 comment:

    FAVOURITE LINE

    To steal ideas from one is plagiarism. To steal from many is Research.

    ADDRESS

    Mumbai , Maharashtra

    EMAIL

    shikha.pathak6@gmail.com
    shikha.the.swt.pari@gmail.com

    Skype

    shikha_pari