您好,欢迎访问成都祈钰瑶科技有限公司!

全国咨询热线

18982081108
✕

成都网站建设公司,成都网站UI设计,成都网站安全维护,成都网站内容优化服务

Android实现毛玻璃效果的对话框-创新互联

一个popwindow,在弹出的时候背景是原界面的截图加高斯模糊效果:

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:主机域名、虚拟主机、营销软件、网站建设、息烽网站维护、网站推广。

先给出popwindow的布局文件

<?xml version="1.0" encoding="utf-8"?> 
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
 android:id="@+id/FrameLayout1" 
 android:layout_width="match_parent" 
 android:layout_height="match_parent" 
 android:background="@drawable/roundcorner" > 
 
 <com.npi.blureffect.ScrollableImageView 
 android:id="@+id/imageView1" 
 android:background="@drawable/roundcorner" 
 android:layout_width="match_parent" 
 android:layout_height="match_parent" 
 android:src="@drawable/roundcorner" /> 
 
 <RelativeLayout 
 android:id="@+id/RelativeLayout1" 
 android:layout_width="match_parent" 
 android:layout_height="match_parent" > 
 
 <TextView 
  android:id="@+id/textView1" 
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content" 
  android:layout_alignParentLeft="false" 
  android:layout_alignParentTop="false" 
  android:layout_centerHorizontal="true" 
  android:layout_centerInParent="false" 
  android:layout_centerVertical="false" 
  android:layout_marginLeft="33dp" 
  android:layout_marginTop="44dp" 
  android:text="这是提示语" /> 
 
 <TextView 
  android:id="@+id/textView2" 
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content" 
  android:layout_alignParentLeft="false" 
  android:layout_below="@+id/textView1" 
  android:layout_centerHorizontal="true" 
  android:layout_marginTop="49dp" 
  android:text="确定" 
  android:textAppearance="?android:attr/textAppearanceLarge" /> 
 
 </RelativeLayout> 
 
</FrameLayout>