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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user