I was wondering if it's possible with Constraintlayout to achieve the following:
I have an Image with a fixed Ratio (2:1) and want it to overlay with a gradient, which should start from the bottom of the Image and top align it to 50% of the Image height.
As far as I could see it is not possible.
Using a Guideline does not work, as it can only be placed with Percentage to the Parent/Layout
Using weight
is only possible in Chains, but as I need to overlay both views chains cannot be used, right?