title: Inner View comes outside from outer View in Constraint Layout in Android
body: <p>I am using <code>ConstraintLayout</code> to design one complex view which should look good in all devices irrespective of their size. At centre one <code>ImageView1</code> is positioned whose width is set as <code>app:layout_constraintWidth_percent=&quot;0.6&quot;</code> &amp; height is <code>0dp</code>. One another <code>ImageView2</code> is placed inside layout whose <code>Start</code> &amp; <code>End</code> are constrained to <code>Start</code> &amp; <code>End</code> of <code>ImageView1</code> and <code>app:layout_constraintWidth_percent=&quot;0.4&quot;</code>. Based on the above constraint ideal working is, even though screen size changed the <code>ImageView1</code> will occupy <code>0.6%</code> part of screen and <code>ImageView2</code> will occupy <code>0.4%</code>. But the <code>ImageView2</code> on smaller size devices comes out of <code>ImageView1</code>. Any tips &amp; help will be appreciated. Thanks</p>