I am using a ViewPager
in an activity layout which is a ConstraintLayout
. This ViewPager
is constrained in order to be displayed below a sibling widget. This ViewPager
, so, doesn't cover the whole screen.
However, in the fragments of this ViewPager
, there is an ImageView
that must be displayed covering the whole screen. This ImageView
is unique per fragment of this ViewPager
(implying that each ImageView
must actually be contained in each ViewPager
's fragments).
The problem is: since this ImageView
is within the fragments of the ViewPager
that doesn't cover the whole screen, then it's impossible to use something like match_parent
for this ImageView
, since it will match the ViewPager
which, obviously, doesn't cover all the screen (since it's shown below a sibling widget).
What could I do to make the ImageView
fill the whole screen?