How can I achieve overlapping views like circled in this attached photo?


Zhao Zhao

I tried using absolute position but it doesn't work, click to view picture overlay image view you can also see my code below.

<View style={{ justifyContent: 'flex-end', flexDirection: 'row' }}>
          <View style={{ height: 20, width: 20, borderRadius: 30, backgroundColor: 'grey', justifyContent: 'center', borderWidth: 0.5, borderColor: 'white' }}>
            <Image
              source={{ uri: item.image }}
              style={{ height: 20, width: 20, borderRadius: 10 }}
            />
          </View>
          <View style={{ height: 20, width: 20, borderRadius: 30, backgroundColor: 'grey', justifyContent: 'center', borderWidth: 0.5, borderColor: 'white' }}>
            <Image
              source={{ uri: item.image }}
              style={{ height: 20, width: 20, borderRadius: 10 }}
            />
          </View>
          <View style={{ height: 20, width: 20, borderRadius: 30, backgroundColor: 'grey', justifyContent: 'center', borderWidth: 0.5, borderColor: 'white' }}>
            <Image
              source={{ uri: item.image }}
              style={{ height: 20, width: 20, borderRadius: 10 }}
            />
          </View>
        </View>

Results of using negative margin

steven

The solution is to use negative left margins for the second and third images and set the properties z-indexin the desired layering order .

Related


How can I achieve a text shadow like this?

David I would like to add a shadow below the text as shown in the attached image. In the attachment we can see the shadow under the text "Site". I tried to use the code below without success. Any help would be greatly appreciated. #testbtn { display: block;

How can I achieve something like "truncateat"?

SMEs While researching this problem, I found that in POSIX (and Linux) there are no truncateatsystem calls at all. For example, some system calls unlinkhave equivalent alternatives with a suffix added atto the end of their name , ie unlinkat. The difference be

How can I achieve a text shadow like this?

David I would like to add a shadow below the text as shown in the attached image. In the attachment we can see the shadow under the text "Site". I tried to use the code below without success. Any help would be greatly appreciated. #testbtn { display: block;

How can I achieve a text shadow like this?

David I would like to add a shadow below the text as shown in the attached image. In the attachment we can see the shadow under the text "Site". I tried to use the code below without success. Any help would be greatly appreciated. #testbtn { display: block;

How can I achieve something like "truncateat"?

SMEs While researching this problem, I found that in POSIX (and Linux) there are no truncateatsystem calls at all. For example, some system calls unlinkhave equivalent alternatives with a suffix added atto the end of their name , ie unlinkat. The difference be

How can I achieve a text shadow like this?

David I would like to add a shadow below the text as shown in the attached image. In the attachment we can see the shadow under the text "Site". I tried to use the code below without success. Any help would be greatly appreciated. #testbtn { display: block;

How can I achieve a text shadow like this?

David I would like to add a shadow below the text as shown in the attached image. In the attachment we can see the shadow under the text "Site". I tried to use the code below without success. Any help would be greatly appreciated. #testbtn { display: block;

How can I create a color combination like an attached image?

Knicks 290192 I want to create background in Xcode like attached image. Any suggestions? swift boy The best way is to always use Image as background let navBackgroundImage:UIImage! = UIImage(named: "your_background_image_name_here") If you just want to set th

How can I add text between two < > (like this photo)?

Rakim 24 How to insert a paragraph between two photos like < > (see photo example)? Photos are like rectangles, so how do I put something in the space between them? This is what I want to do: Jeremy Harris Given that you haven't shown any effort, I don't usual

How can I see my computer specs like this photo?

cloak enter image description here Use this OS icon? linuxfan says to restore monica It looks like you are looking at the command neofetch : https://github.com/dylanaraps/neofetch It says: Neofetch is a command line system information tool written in bash 3.2+

How can I achieve a surround effect in an arcade-like game?

Epsilon I'm working on a clone of the Spacewar game ! . In the game, ships can travel to the edge of the map and wrap around to the other side, sometimes splitting in half, half on each side of the screen (they split into four when the ships enter a corner). Y

How can I achieve navigation that behaves like a circle?

Lucca Oatmeal I have 4 pages. Now my application starts from page1. Navigation should work like this: page1 > page2 > page3 > page4 Then page4 should open page1 again. and many more. The page doesn't need to remember the called page, await Navigation.PushModal

How can I achieve this with NestedScrollView?

cloud walker I've boiled my code down to a small sample application, so consider the following code: import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context

suggest how i can achieve this

username I am creating a small project management website. The main table is projects. I also have a few tables task discusion milestones All tables contain pid(item IDs) linked to specific rows in the items table. I want to create tabs in proejcts view page w

suggest how i can achieve this

username I am creating a small project management website. The main table is projects. I also have a few tables task discusion milestones All tables contain pid(item IDs) linked to specific rows in the items table. I want to create tabs in proejcts view page w

Can I divide views in Django like this?

Andreka Can I divide views in Django like this? Do I need extra urls in my urls.py? def profile(request): if(option) return view1(request) else return view2(request) Ningridge Yes, you can do this without declaring another URL.

How can i make the image flow like in google photo album view

User 8243552 I find it hard to believe that it takes megabytes of css and javascript. I wrote a python program to read a yaml file containing thumbnail images and links to google photo albums as they removed picasaweb.google.com but kept all photo albums. I'd