Android 4.0以降のアプリケーションを作成しています。Holo.Light テーマをダークActionBar
(Tabs
ナビゲーション モードとして) で使用します。
問題: ActionBar に配置する必要があるアイコン (タブ) が多すぎるため、カスタムTitleBar
を作成し、そこにいくつか配置Buttons
して、機能を維持しながらActionBar
. 私は次のことを試しました:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);
これにより、アプリがクラッシュし、次のメッセージが表示されます。
08:00:24.063: E/AndroidRuntime(11283): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.maver1ck.test/net.maver1ck.test.Main}: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
「その他のタイトル機能」とは何ですか? ActionBar とカスタム タイトルを使用することは可能ですか?