Android 任意View边沿渐变透明
Android 任意View边沿渐变透明
引入库
布局
<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>
属性说明
演示图(不要在意文字内容)ps:有点像阴影,但不是,是渐变透明效果
最后欢迎您star