私はXMLで定義されたTextViewを持っていて、それに背景色と境界線を設定したいと思います。 問題私は、XMLで私はすでにandroid:background
ボーダーリソースを設定しているので、私はもう一度背景色のために使用することはできません。 誰かが私を正しい方向に導くことができますか?textViewのボーダーと背景色を設定します
Border.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid android:color="#ffffff" />
<stroke android:width="1dip" android:color="#7F000000"/>
</shape>
のTextView
<TextView
android:id="@+id/editor_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@drawable/title_border"
android:padding="5dp"
android:text="@string/editor_title"
android:textAppearance="?android:attr/textAppearanceMedium" />