I have a ListView containing certain items and I have placed a EditText
above the list to provide the Search
facility to the user, means, by typing inside the EditText
and clicking any button etc., user can search whether certain item is present in the list or not.
Now what I want is that: if the letters / characters typed by the user are present inside any list item, then those letters only
to be changed in RED or BLUE or any other color. For example I have a list of fruits and I am searching for Apple
, so when I start typing app... le, then the color of only those characters which are typed by the user, app
(in this case), should be changed to RED, BLUE or any other color if the item Apple
is present in the list.
Can anyone tell whether this is possible to do in Android and if yes, then how to do so. Thanks in Advance