Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
Transparent background overlapping

I have a simple view like this:

  <View style={{backgroundColor:'rgba(82, 82, 82, 0.8)',position:'absolute',left:0,width:100,height:100}}></View>
  <View style={{backgroundColor:'rgba(82, 82, 82, 0.8)',position:'absolute',left:50,width:100,height:100}}></View>

but the overlap produces a color of it's own like this:

enter image description here

how do I make them both be only transparent towards the background and not overlap the transparency ?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You either don't have transparency, or you don't overlap the views. Overlapping transparent views will always show whatever was behind the front views.

There is no magic way to tell a view in front to use its transparency and ignore any transparency behind. This is because the views are drawn back to front. So by the time the front view renders its transparency, then everything behind it is already drawn and finalized.

This is like overlapping a yellow plastic film and a green plastic film, and asking how can light can only go through the green one. That's just... not how it works.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda