Android 任意View边沿渐变透明
####代码简单,使用简单
#####使用
-
引入库
- compile 'ren.qinc.edgetranslucent:lib:0.0.1'
-
布局
<me.qinc.lib.edgetranslucent.EdgeTransparentView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:edge_width="30dp"
app:edge_position="top|bottom">
<需要边沿透明的View
/>
</me.qinc.lib.edgetranslucent.EdgeTransparentView>