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> 

分享题目:Android实现毛玻璃效果的对话框-创新互联
文章分享:https://www.cdcxhl.com/article14/csedde.html

成都网站建设公司_创新互联,为您提供网站设计静态网站网站策划外贸建站企业建站网站收录

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

外贸网站建设