File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
44
55### Providing a simple auto complete from an array of strings
66
7- ```
7+ ``` java
88// Your language keywords
99String [] 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,
2323also it more easier to use it with snippets feature.
2424
25- ```
25+ ``` java
2626List<Code > codes = new ArrayList<> ();
2727codes. add(new Keyword (... , ... , ... ));
2828
@@ -40,18 +40,18 @@ codeView.setAdapter(codeAdapter);
4040In both options you can provide custom layout and custom tokenizer if you need that.
4141
4242
43- ```
43+ ``` java
4444codeView. setAutoCompleteTokenizer(tokenizer);
4545```
4646
4747You can limit the number of suggestions result in the auto complete dialog
4848
49- ```
49+ ``` java
5050codeView. setMaxSuggestionsSize(maxSize);
5151```
5252
5353Set the auto complete list item size in dp to use it to calculate the full dialog size
5454
55- ```
55+ ``` java
5656codeView. setAutoCompleteItemHeightInDp(50 );
57- ```
57+ ```
You can’t perform that action at this time.
0 commit comments