Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to make popupwindow background blur in android

PopupWindow popup = new PopupWindow(contentView, width, height);
popup.setBackgroundDrawable(background);
popup.showAsDropDown(anchor);

View container = (View) popup.getContentView().getParent();
WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
WindowManager.LayoutParams p = (WindowManager.LayoutParams) container.getLayoutParams();
// add flag
p.flags |= WindowManager.LayoutParams.FLAG_DIM_BEHIND;
p.dimAmount = 0.3f;
wm.updateViewLayout(container, p);
Comment

PREVIOUS NEXT
Code Example
Java :: wait method in java 
Java :: If you are using the git profile, you need to set a Git URI in your configuration. If you have set spring.cloud.config.server.bootstrap=true, you need to use a composite configuration. 
Java :: can i have both java7 and java 11 in mac 
Java :: java multithreading 
Java :: how to output in java 
Java :: eliminar el primer caracter de un string java 
Java :: junit check class type 
Java :: main method in java 
Java :: power-hungry foobar solution in java 
Java :: use of randomAccessfile() in java 
Java :: java check if string contains multiple words 
Java :: spring xml configuration 
Java :: reader 
Java :: java array get index 
Java :: return two values in java 
Java :: How to run bootRun with spring profile via gradle task 
Java :: java map tostring 
Java :: pop back stack fragment android 
Java :: System.out.println("j= 6"); 
Java :: finding length of arrays in java 
Java :: locked screen android studio 
Java :: scanf in java 
Java :: how to create a subclass in java 
Java :: comparestring java 
Java :: how to develop web apps using java 
Java :: list of strings java 
Java :: current port used by the Java application 
Java :: change brightness of image in java 
Java :: exception in java 
Java :: java enum strings 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =