Android 任意View边沿渐变透明
引入库
- compile 'ren.qinc.edgetranslucent:lib:0.0.3'
布局
<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>