BlurView类 iOS 毛玻璃效果控件
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);
评论
iOS 评分控件
星形评分控件,采用coregraphics实现,按分值百分比任意比例填充每一颗星星。与其他评分控件不一样的是,采取拖动slider的方式进行填充星星。[Code4App.com]
iOS 评分控件
0
MMParallaxCelliOS 平行效果控件
MMParallaxCell是一个UITableView的子类,用来表现平行效果,你基本上不需要配置任何文件就能定制它。
MMParallaxCelliOS 平行效果控件
0