Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TextView for Android that supports furigana and text formatting.

License

Notifications You must be signed in to change notification settings

Vexu/Furigana-TextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FuriganaView

FuriganaView is a a view for Android that can add furigana on top of kanji. Text can be bolded, italicized and underlined.

Example

Implementation

By default furigana is set as "{漢字;かんじ}" and bold, italic and underline by their html tags.

java

    FuriganaView furiganaView = new FuriganaView(this);
    furiganaView.setTextAlignment(View.TEXT_ALIGNMENT_CENTER)
    furiganaView.setFuriganaSize(10f);
    furiganaView.setTextSize(20f);
    furiganaView.setLineSpacing(10f);
    furiganaView.setText(TEXT);

xml

    <FuriganaView
        android:maxLines="2"
        android:text="TEXT"
        android:textAlignment="center"
        android:lineSpacingExtra="4sp"
        android:textSize="40sp"
        custom:furiganaSize="15sp"/>

About

TextView for Android that supports furigana and text formatting.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages