类 iOS 毛玻璃效果控件 BlurView
- 授权协议: Apache 2.0
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/Dimezis/BlurView
- 软件文档: https://github.com/Dimezis/BlurView/blob/master/README.md
- 官方下载: https://github.com/Dimezis/BlurView/archive/master.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);
How to Think About Algorithms
Jeff Edmonds / Cambridge University Press / 2008-05-19 / USD 38.99
HOW TO THINK ABOUT ALGORITHMS There are many algorithm texts that provide lots of well-polished code and proofs of correctness. Instead, this one presents insights, notations, and analogies t......一起来看看 《How to Think About Algorithms》 这本书的介绍吧!
