Hi,
I have followed the example in for the gradient dividers: http://www.connorgarvey.com/blog/?p=34
I have tried to draw a horizontal line at the BOTTOM of my linear layout.
Here is my linear layout file:
<LinearLayout android:id="@+id/test" android:layout_width="fill_parent"
android:layout_height="wrap_content>
<ImageView android:id="@+id/icon1"
android:layout_width="32dip"
android:layout_height="32dip"
/>
And I did add
<View
android:background="@drawable/black_white_gradient"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_above="@id/test"
/>
But i don't see any line at the top of the LinearLayout. And when I go to Hierarchy View and see he View (for the hort separator), the getWidth() is 0 while getHeight() is 1.
Can you please tell me what am I missing?
Thank you.