Giter Site home page Giter Site logo

edgetranslucent's Introduction

EdgeTranslucence

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

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

    Image

  • 最后欢迎您star

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.