File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ You have many options to provide an auto complete feature with CodeView
4
4
5
5
### Providing a simple auto complete from an array of strings
6
6
7
- ```
7
+ ``` java
8
8
// Your language keywords
9
9
String [] languageKeywords = .....
10
10
// List item custom layout
@@ -22,7 +22,7 @@ codeView.setAdapter(adapter);
22
22
- This option is better if you want to provide title and prefix for your keywords,
23
23
also it more easier to use it with snippets feature.
24
24
25
- ```
25
+ ``` java
26
26
List<Code > codes = new ArrayList<> ();
27
27
codes. add(new Keyword (... , ... , ... ));
28
28
@@ -40,18 +40,18 @@ codeView.setAdapter(codeAdapter);
40
40
In both options you can provide custom layout and custom tokenizer if you need that.
41
41
42
42
43
- ```
43
+ ``` java
44
44
codeView. setAutoCompleteTokenizer(tokenizer);
45
45
```
46
46
47
47
You can limit the number of suggestions result in the auto complete dialog
48
48
49
- ```
49
+ ``` java
50
50
codeView. setMaxSuggestionsSize(maxSize);
51
51
```
52
52
53
53
Set the auto complete list item size in dp to use it to calculate the full dialog size
54
54
55
- ```
55
+ ``` java
56
56
codeView. setAutoCompleteItemHeightInDp(50 );
57
- ```
57
+ ```
You can’t perform that action at this time.
0 commit comments