Code Monkey home page Code Monkey logo

enpopupwindow's Introduction

EnPopupWindow

处理popupwindow的相关问题,主要处理背景浮层问题.

在popup显示的时候,在寻找根据传入的view寻找到最外层的ViewGroup,在ViewGroup中添加一个黑色View,然后启动一个属性动画修改背景色.

为什么不使用属性动画修改Window的亮度? 在使用这种方法的时候,当返回上一个Activity时,屏幕会变黑,影响很不好,此外在很多机型上存在问题,尤其华为的一些机子上,屏幕亮度调节时有明显卡顿的感觉,体验非常不好.

enpopupwindow's People

Contributors

awarmhug avatar

Watchers

 avatar  avatar

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.