0
可能性の重複:私は私のapplicatinのname.Howの色をcahngingための私のアプリケーションのカスタムタイトルバーを作りたい
Android: Custom Title Barアンドロイドアプリケーションのカスタムタイトルバーを作成するには?
は、私はこれを行うことができますか?
可能性の重複:私は私のapplicatinのname.Howの色をcahngingための私のアプリケーションのカスタムタイトルバーを作りたい
Android: Custom Title Barアンドロイドアプリケーションのカスタムタイトルバーを作成するには?
は、私はこれを行うことができますか?
あなたのアクティビティにこの物を入れてください。
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"/>
ORあなただけTHEN
setTitle("Your TITLE");
を書きたい場合は、独自の作ることができます。その他の参考文献Reference 1,Reference 2。
[ベスト・サンプル](http://www.edumobile.org/android/android-programming-tutorials/creating-a-custom-title-bar/) – Praveenkumar
これはカスタムタイトルバーを作成するための最良の例です。 .. http://www.londatiga.net/it/how-to-create-custom-window-title-in-android/ – wolverine