Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 895 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 895 Bytes

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"/>