Reputation: 1720
I have to set round image view between two layout which is marked from red line in image below
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
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
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