Help in using shape drawable as my background xml
Posted
by n179911
on Stack Overflow
See other posts from Stack Overflow
or by n179911
Published on 2009-08-14T06:36:17Z
Indexed on
2010/04/12
6:03 UTC
Read the original article
Hit count: 598
I really appreciate if someone can help me with using how to use shape drawable as my background xml for my view.
This is what I tried: But I never get the color. Android always gives me black text on white background, regardless what color attribute I put.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1dip" android:color="#FBBB" />
<solid android:color="#6000"/>
</shape>
I tried , does not work
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:color="#6000>
</shape>
I tried , does not work
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:background="#6000>
</shape>
I google this is the limited result I found to try.
© Stack Overflow or respective owner