layout - Android collapses a negatively aligned to view specifically when within ScrollView -


is able tell me why following layout doesn't render on android api 16 , 17. (the red bar doesn't appear)

<?xml version="1.0" encoding="utf-8"?> <scrollview     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#ffaa00">      <relativelayout         android:layout_width="match_parent"         android:layout_height="wrap_content">          <view             android:id="@+id/redrow"             android:layout_width="match_parent"             android:layout_height="59dp"             android:layout_marginbottom="-12dp"             android:background="#aaff0000"/>          <view             android:layout_width="match_parent"             android:layout_height="59dp"             android:layout_below="@+id/redrow"             android:background="#aa00ff00"/>      </relativelayout>  </scrollview> 

incorrect rendering on api 16 , 17 incorrect rendering on api 16 , 17

expected, of api 18 , above expected, of api 18 , above


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -