popupwindow focus problem solution
Updated: November 23, 2012 16:56:57 Author:
During the Android development process, we always encounter some problems, such as popupwindow focus problem, etc. How should we solve it? Friends who need it can learn about it
1. Question: A PopupWindow is created, and the listView needs to be displayed. In this way, if the itemClick of the listView is implemented, the PopupWindow must be focused. However, after the PopupWindow gets focus, some onTouch events of parentView cannot be responded. What should I do at this time?
2. Solution: PopupWindow gets focus: (true);
It is also necessary to get response needs other than PopupWindow--(new BitmapDrawable());
3. Note: If it cannot be implemented yet, change the order of the above two sentences~~~
2. Solution: PopupWindow gets focus: (true);
It is also necessary to get response needs other than PopupWindow--(new BitmapDrawable());
3. Note: If it cannot be implemented yet, change the order of the above two sentences~~~
Related Articles
Android implementation full screen layout
This article mainly introduces the full screen layout of Android. The sample code in the article is introduced in detail and has a certain reference value. Interested friends can refer to it.2021-05-05Solution to the error when setting the value of the control in an Android thread
This article mainly introduces the solution to the error when setting the value of the control in an Android thread. The example analyzes the reason for the error of the textview and the implementation techniques for setting the Handler to solve the error. Friends who need it can refer to it.2016-06-06How to use regular expressions to preserve only alphanumeric
During the process of doing a project, using regular expressions to match specific types of characters in a piece of text is a common method. The following article mainly introduces to you about how Android uses regular expressions to retain only alphanumeric information. Friends who need it can refer to it.2022-05-05How to maintain login using token
This article mainly introduces the method of using token to maintain login status on Android, including the concept and function of token. This article will introduce it to you in a very detailed way. If you need it, please refer to it.2017-01-01Android calls the default browser access method
This article mainly introduces the relevant information about the Android calling the default browser access method of the system. Friends who need it can refer to it2016-03-03Clever talk about event delivery and processing mechanism in android
Below, the editor will bring you an old-fashioned article on the event delivery and processing mechanism in Android. The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor2017-04-04Android thread priority setting tips
For the thread priority setting on the Android platform, it can handle many concurrent thread blocking problems. For example, many irrelevant threads will occupy a lot of CPU time. Although MultiThread is used to solve slow I/O, reasonable allocation of priority is very important for concurrent programming.2016-02-02Android implements password clear password switching (small eyes)
This article mainly introduces the implementation of Android password-clearing text switching. The sample code in the article is very detailed and has certain reference value. Interested friends can refer to it.2022-08-08Android Camera implements millisecond photography example
This article mainly introduces the example of Android Camera implementing millisecond-level photography, which has certain reference value. Interested friends can refer to it.2017-06-06Android SharedPreferences implements password remembering and automatic login interface
This article mainly introduces the implementation of Android password remembering and automatic login interface (SharedPreferences), which has certain reference value. Interested friends can refer to it.2017-02-02