开发者

Want to show last used values in Android text field

Is there a way to display the values that were last entered values into an EditText field? I currently开发者_运维百科 am able to save the last entered values to my database and pre-populate the last used value into the field itself but I would like to show the list of values underneath the field when it is clicked on.


Use an AutoCompleteTextView.


You could save the last entered values to a persistant data storage (like you use database.. or sharedpreferences).

Use a Spinner instead of EditText http://developer.android.com/resources/tutorials/views/hello-spinner.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜