You can use ResplacementSpan to change the way aya is displayed
for example, so I did it
public class EndOfAyaSpan extends ReplacementSpan { public RoundedBackgroundSpan(Context context) { super(); } @Override public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) { float textSize = paint.getTextSize(); canvas.drawText("\u06dd ", 0, 1, x - textSize / 5, (float) y, paint); paint.setTextSize(textSize - textSize / 3); canvas.drawText(text, start, end, x, y - textSize / 5, paint); paint.setTextSize(textSize); } @Override public int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) { return Math.round(paint.measureText(text, start, end)); } }
source share