重複の可能性:
Android:カスタムタイトルバー
アプリケーション名の色を変更するためのカスタムタイトルバーを作成したいのですが、どうすればよいですか?
このことをあなたのアクティビティに書いてください。
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);
mytitle レイアウトは、タイトル メニューとして表示される xml ファイルです。以下は小さな例です。
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myTitle"
android:text="custom title bar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="@color/titletextcolor"
android:gravity ="center"/>
または、書きたいだけの場合
setTitle("Your TITLE");