Skip to content

Commit c5be3ff

Browse files
committed
Update the sample app to add example for highlighting current line
1 parent d92a3c7 commit c5be3ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/amrdeveloper/codeviewlibrary/MainActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ private void configCodeView() {
6767
codeView.setLineNumberTextColor(Color.GRAY);
6868
codeView.setLineNumberTextSize(25f);
6969

70+
// Setup highlighting current line
71+
codeView.setEnableHighlightCurrentLine(true);
72+
codeView.setHighlightCurrentLineColor(Color.GRAY);
73+
7074
// Setup Auto indenting feature
7175
codeView.setTabLength(4);
7276
codeView.setEnableAutoIndentation(true);

0 commit comments

Comments
 (0)