代碼:http://download.csdn.net/detail/huangbin95487710/9258819
依賴包模式
完整運行還需要用到以下依賴包
- ImageView【BlurImageView】
<!--**簡單的一句佈局引用即可--> <General.View.BlurImageView android:id="@+id/img0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="15dip" android:src="@drawable/heng" />
- ListView【BlurListView】
<General.View.BlurListView android:id="@+id/listview" style="@style/MyDivBlurView" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <style name="MyDivBlurView" parent="@style/DivBlurView"> <item name="blur_bottom_height">50dip</item> <item name="blur_top_height">50dip</item> </style>