Clicking on EditText Makes Fragment Transparent

  Problem: When an EditText is clicked, the fragment where the control is located becomes transparent, which will cause the fragment below it to be displayed. There



  are not many solutions as shown in the figure.


  Method 1. Commonly use replace to replace add, so as to ensure that there is no other fragment under the current fragment, and when it becomes transparent, it has no effect

  Method 2. Add background and clickable="true" to the root directory of the current fragment ( This can solve most problems)

  Method 3. On the basis of method 2, get the focus requestFocus for a certain edittext This can also solve some problems,


  but what is the reason?

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326892117&siteId=291194637