类iOS毛玻璃效果控件BlurView.zip
BlurView 是Android下类似 iOS 毛玻璃效果控件。使用: <eightbitlab.com.blurview.BlurView android:id="@ id/blurView" android:layout_width="match_parent" android:layout_height="wrap_content" app:overlayColor="@color/colorOverlay"> <!--Any child View here, TabLayout for example--> </eightbitlab.com.blurview.BlurView> final int radius = 16; final View decorView = getWindow().getDecorView(); //Activity's root View. Can also be root View of your layout final View rootView = decorView.findViewById(android.R.id.content); //set background, if your root layout doesn't have one final Drawable windowBackground = decorView.getBackground(); blurView.setupWith(rootView) .windowBackground(windowBackground) .blurAlgorithm(new RenderScriptBlur(this, true)) //Preferable algorithm, needs RenderScript support mode enabled .blurRadius(radius); 标签:BlurView
- 1
- 粉丝: 512
- 资源: 1万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助