Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions dont work #15

Closed
m-anshuman2166 opened this issue Feb 25, 2022 · 4 comments
Closed

Suggestions dont work #15

m-anshuman2166 opened this issue Feb 25, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@m-anshuman2166
Copy link
Contributor

my code doesnt work

public static String[] suggestions = {"!DOCTYPE", "a", "acronym", "abbr", "address"};

ArrayAdapter adapter = new ArrayAdapter<>(this, R.layout.code_suggestions, R.id.suggestItemTextView, suggestions);
cd.setAdapter(adapter);

suggestions dont even appear

@AmrDeveloper
Copy link
Owner

Hello @ansh2166,

Thank you for your issue, from your code example I see that you used the same layout XML from the example app, so I tested your code with it

auto-complete2

auto-complete1

And if you want the autocomplete to work with 1 first char you can add codeView.setThreshold(1); and the result will be like this

auto-complete3

Please change the example app and if you will have the same problem you can share more code so we can find the problem together 👍🏻

@AmrDeveloper AmrDeveloper added the question Further information is requested label Feb 25, 2022
@m-anshuman2166
Copy link
Contributor Author

I got it to work, last issue, Suggestions are overlapped by keyboard if line is at bottom :(

@AmrDeveloper AmrDeveloper added enhancement New feature or request and removed question Further information is requested labels Feb 26, 2022
@AmrDeveloper
Copy link
Owner

Thanks, @ansh2166, i will solve it soon in the next release 😃

@AmrDeveloper
Copy link
Owner

Hello, @ansh2166 I have released version 1.3.3 with solution for your last issue and I will add some extra improvement and options soon, enjoy CodeView 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants