Scrollable inline suggestions

Increase the number of suggestions for scrolling in
the sample autofill service.

Add scrollable container for the suggestions in the
keyboard suggestion view.

Test: manual

Change-Id: I4f8a2fe191f4b7e5a70b5370a7bd55a2e9dddc9a
This commit is contained in:
Svet Ganov
2020-01-27 19:21:32 -08:00
parent af2bd94be7
commit 6b5b977f1e
3 changed files with 10 additions and 7 deletions

View File

@@ -16,7 +16,6 @@
package com.example.android.autofillkeyboard;
import android.content.res.Resources;
import android.inputmethodservice.InputMethodService;
import android.os.AsyncTask;
import android.os.Handler;
@@ -101,7 +100,7 @@ public class AutofillImeService extends InputMethodService {
getResources().getResourceName(R.style.GreenTheme)).build());
return new InlineSuggestionsRequest.Builder(presentationSpecs)
.setMaxSuggestionCount(2)
.setMaxSuggestionCount(6)
.build();
}