ArrayAdapter Advice or Suggestions
I'm trying to figure out on how can I bind a selection of prediction on my
Gesture. what I want in code is, I want my gesture stroke prediction
binded on ArrayAdapter which show as a layout selection.
Unfortunately, I'm finding a way on this code which is not working. thanks
guys in advance!
TextView edittext = (TextView) findViewById(R.id.editText1);
ArrayList<Prediction> predictions = gLibrary.recognize(gesture);
adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, predictions);
edittext.setAdapter(adapter);
No comments:
Post a Comment