I Want to create an android activity which will have few vertical stripes, here is my code:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="50dp"
android:background="#CCCCCC" >
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="250dp"
android:background="#FFFFFF" >
</LinearLayout>
As you can see the upper stripe is 50 dp and the bottom stripe is 250 dp. the problem is that I am seeing only one stripe, here is what I see:

I see only one stripe.
How should I do this right?
Thanks
I think your parent
LinearLayout‘sorientationattribute ishorizontal. If you make its orientation (android:orientation) set toverticalthe problem should be fixed.Please post your whole layout file.