Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

VappSmartTeam/EdgeTranslucent

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeTranslucence

Android 任意View边沿渐变透明

代码简单,使用简单

使用
  • 引入库

    • compile 'ren.qinc.edgetranslucent:lib:0.0.2'
  • 布局

     <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>
  • 属性说明

    1. edge_width:边沿透明的宽度(不填写默认20dp)
    2. edge_position:透明的位置(可以组合使用,不填写默认四个边沿都透明)
      • top
      • bottom
      • left
      • right
  • 演示图(不要在意文字内容)ps:有点像阴影,但不是,是渐变透明效果

    Image

  • 最后欢迎您star

About

Android 任意View边沿渐变透明

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.