Skip to content

Line Number

Starting From version 1.1.1 CodeView now have support for line number.

Enable/Disable line number

codeView.setEnableLineNumber(true and false);

Check if line number feature is enabled

codeView.isLineNumberEnabled();

Enable/Disable relative line number

codeView.setEnableRelativeLineNumber(true and false);

Check if relative line number feature is enabled

codeView.isLineRelativeNumberEnabled();

Enable/Disable highlight current line

codeView.setEnableHighlightCurrentLine(true and false);

Check if highlight current line feature is enabled

codeView.isHighlightCurrentLineEnabled();

Set highlight current line color

codeView.setHighlightCurrentLineColor(Color.GREY);

Set line number text color

codeView.setLineNumberTextColor(Color.GREY);
codeView.setLineNumberTextSize(size like 30f);

Set line number typeface

codeView.setLineNumberTypeface(typeface);