Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2f0567f

Browse files
authoredDec 23, 2022
Update auto-complete.md
1 parent 5222d8e commit 2f0567f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎docs/auto-complete.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You have many options to provide an auto complete feature with CodeView
44

55
### Providing a simple auto complete from an array of strings
66

7-
```
7+
``` java
88
// Your language keywords
99
String[] languageKeywords = .....
1010
// List item custom layout
@@ -22,7 +22,7 @@ codeView.setAdapter(adapter);
2222
- This option is better if you want to provide title and prefix for your keywords,
2323
also it more easier to use it with snippets feature.
2424

25-
```
25+
``` java
2626
List<Code> codes = new ArrayList<>();
2727
codes.add(new Keyword(..., ..., ...));
2828

@@ -40,18 +40,18 @@ codeView.setAdapter(codeAdapter);
4040
In both options you can provide custom layout and custom tokenizer if you need that.
4141

4242

43-
```
43+
``` java
4444
codeView.setAutoCompleteTokenizer(tokenizer);
4545
```
4646

4747
You can limit the number of suggestions result in the auto complete dialog
4848

49-
```
49+
``` java
5050
codeView.setMaxSuggestionsSize(maxSize);
5151
```
5252

5353
Set the auto complete list item size in dp to use it to calculate the full dialog size
5454

55-
```
55+
``` java
5656
codeView.setAutoCompleteItemHeightInDp(50);
57-
```
57+
```

0 commit comments

Comments
 (0)
Please sign in to comment.