Text overlapping text on an Android adapter

On some phones, mainly on the Galaxy S2, I have a problem when the results in the user adapter overlap with each other. This is an example when a user searched for the word โ€œvaginalโ€ in the search field, this is a medical application.

screenshot_2013-05-09-09-08-32.png

I'm not sure the best way to describe this, and the code is pretty confusing at this point. The user enters a word, and the database results are displayed as matches. These results are in the List object and displayed through the adapter. On most phones, this works, as expected, with consistent results. On at least one device, the above screen shot.

Is this a known bug and how to fix it?

+6
source share
1 answer

It looks like How often you can update the text view without interference , possibly caused by reusing View in the list adapter. The solution to this problem is to make the background a fully opaque color.

+2
source

Source: https://habr.com/ru/post/944712/


All Articles