In android xml we set the background as following
android:background="#FF88FF"
Now In frameLayout how can I use tow background color. E.g. top 50% should be red bottom 50% should be black
<FrameLayout
android:layout_width="match_parent"
android:layout_height="37dp"
android:layout_weight="0.79"
android:background="#FF88FF"
android:padding="25dp" >
</FrameLayout>
How to do this???