GithubHelp home page GithubHelp logo

Comments (3)

christophesmet avatar christophesmet commented on July 1, 2024

Hey George,
I cant see the image but I assume the google maps view is completely black.

Chances are high that the porterduff mode you are using only supports software rendering, and since google maps is highly optimized I wouldn't be surprised if it was rendered with hardware acceleration.

Setting the layer to software will probably not be a solution. You can apply masking and other effects using shaders, but this library only supports software layers, not hardware.

Some modes should work like PorterDuff.Mode.SRC_IN in hardware layers.
I would suggest trying it with hardware supported modes, else you will have to use shaders.

from android_maskable_layout.

GeorgeMincila avatar GeorgeMincila commented on July 1, 2024

Appreciate the quick reply. I tried the SRC_IN mode. I am getting the same result. Can click the image url again. I made sure it is public.

Will have to get informed about shaders. I don't know how to use them yet.

from android_maskable_layout.

christophesmet avatar christophesmet commented on July 1, 2024

Romain guy had some great info about this subject.
His blog seems to be offline: https://web.archive.org/web/20140318001921/http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/
Anyway, I'm gonna close this as it only supports software layers and I think the hardware rendering of google maps is the problem.
I suggest adding a background to the google maps container instead of making it 'float'. Then you can overlay rounded corners. Its not as clean tho.
If you found a way, I'd love to hear the solution.
Good luck!

from android_maskable_layout.

Related Issues (20)

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.