Android Shape Line
Posted
by xger86x
on Stack Overflow
See other posts from Stack Overflow
or by xger86x
Published on 2010-05-03T11:34:06Z
Indexed on
2010/05/03
11:38 UTC
Read the original article
Hit count: 407
Hi, i have the following code:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke android:width="1dp"/>
<size android:height="1dp" />
<solid android:color="#FFF"/>
</shape>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background ="@drawable/line"/>
I have two questions:
1) Why the line is black instead white? I have tried putting it inside a ImageView but the result is the same.
2) How can i set the opacity of the shape?
Thanks
© Stack Overflow or respective owner