私はこのSOの質問の指示に従いました:アクションバーのテキストを変更する方法
独自のタイトルバーを正常に作成できますが、レイアウトに背景色を適用すると、色がタイトルバー全体に広がりません。アンドロイドの灰色の背景色の残骸がまだあります。
これが私のXMLです:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="400px"
android:layout_height="fill_parent"
android:orientation="horizontal" android:background="@color/solid_blue">
<ImageView android:id="@+id/logo"
android:layout_width="57px"
android:layout_height="wrap_content"
android:background="@drawable/icon">
</ImageView>
<TextView
android:id="@+id/myTitle"
android:text="StockDroid by"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="#FFFFFF"
/>
</LinearLayout>