Here in the code you can clearly see this is a list view which is created using base adapter hence you can modify it in whichever way you want i.e. custom listview

Here,historyList is the main list which is holding the data. historyList will be filtered by pressing key in edit text, onTextChanged is the listenermethod of textwatcher interface which gets called when we change the text of edit text here filterEditText.

List with filtered data will be in your tempHistoryListwhich is also using the same adapter view hence even after modification of list same adapter will be recreated.

This layout is having the widgets which should be in frame layout here we have added a listview this is the contents which will be refreshed every time we press any key in filter edit text.The layouts are separated so that readers may easily customize in their own way.