FuriganaView

FuriganaView is a widget for Android. It renders text simlarily to TextView, but adds furigana on top of Japanese kanji. The furigana has to be supplied to the widget within the text. It also supports bold, italic, bold-italic type and break line with html tag.

Screenshot

Example

Example

Example

Implement

FuriganaView has 2 way to implement.

By java code

    FuriganaView furiganaView = new FuriganaView(this);
    furiganaView.setJText(YOUR_TEXT);

By xml

    <com.akira.nguyen.furigana.widget.FuriganaView
        xmlns:furigana="http://schemas.android.com/apk/res/com.akira.nguyen.furigana.sample"
        android:id="@+id/furigana_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="20dp"
        furigana:line_spacing="25"
        furigana:jText="@string/test"/>