I have multiple edittext views, one in which the user will type some letters, and a search item list will appear using a text watcher. Currently, the list appearing after typing some letters takes space between edittexts, and other edittexts go down from their actual place. I want other edittexts to be at the same place when lists appear and lists appearing should appear on top of other fields like spinner items.
If you will see the image items appearing in the list should come on the top and all other edittexts shouldn't move from their place.
Asked
Active
Viewed 28 times
0

Kartik Agarwal
- 1,129
- 1
- 8
- 27

Abhas Sharma
- 89
- 9
-
1just use AutoCompleteTextView of Android – Kartik Agarwal Mar 06 '23 at 07:31
-
Are you trying to make something like this? https://www.google.com/amp/s/www.geeksforgeeks.org/how-to-search-an-item-in-listview-using-edittext-and-textwatcher-in-android/amp/ – nope Mar 06 '23 at 07:33
-
@KartikAgarwal Can I apply text watcher in autocomplete textview and make an api call to get lists only related to text observed as an input? If yes, then please explain also. – Abhas Sharma Mar 06 '23 at 07:42
1 Answers
0
Use AutoCompleteTextView, yes you can also hit an API to fetch data. You can get more information from here: Autocomplete Implementation

Farhan Khan
- 21
- 3