Avinash Kumar Pankaj
Avinash Kumar Pankaj

Reputation: 1720

Image view between two layout

I have to set round image view between two layout which is marked from red line in image below

enter image description here

I am achieving this UI using weight so that i can use it in any device but the problem is that i am not able to put that imageview between two layout. Any suggestions will be great help.

Upvotes: 1

Views: 1588

Answers (2)

amalBit
amalBit

Reputation: 12191

This can be acheived using a frameLayout:

This layout makes it very easy to draw on top of other layouts. https://github.com/thecodepath/android_guides/wiki/Constructing-View-Layouts

Upvotes: 1

Apoorv
Apoorv

Reputation: 13520

If you want the image to occupy the space in between the 2 layouts take LinearLayout as root layout with android:orientation="vertical" and keep the image between the 2 layouts with android:layout_height="0dp" andandroid:layout_weight="1". The image will occupy whatever space is left between the 2 layout at run time.

Upvotes: 0

Related Questions