Such a strange problem, I created a custom view, well, as a custom view, it is simply inherited from the frame layout, and there is an edittext and some other views in it, and for some reason, when I set the anonymous TextWatcher on the top of the view, so that the bottom view on the screenshot was simply written in xml (I didn’t initialize it at all in its class), so that when you open the screen, the text from it is passed once through the top view TextWatcher of the top view (yes, when you first open it is , but this emptiness is from the bottom, not the top view), then this T extWatcher does not react to the lower view, and if you go on the trail. the screen and come back, the same thing happens
. In this view, nothing like that, just pull out custom xml attributes, and insert it into the views in the custom view itself. I also removed the attribute initialization completely, it was just a raw view, with other views, and the same thing happens
Here, this is all I do, I just write the attributes in the fields first, and then insert them into the views. I don’t understand how this can happen, that is, TextWatcher anchored to the first view anonymously, when it comes to the screen it reacts for the first time to a text that is not related to this TextWatcher’s second view
|