0

このリンクリンクをチェックしています。しかし、デフォルトのタイトルとアイコンをタイトルタブに置き換えたいという私の問題は解決しました。

        // Set up the action bar.
        final ActionBar actionBar = getActionBar();

        // Specify that the Home/Up button should not be enabled, since there is no hierarchical
        // parent.
        actionBar.setHomeButtonEnabled(false);

        // Specify that we will be displaying tabs in the action bar.
        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

上記のリンクからいくつかのコードを試してみましたが、必要なものが得られませんでした。水平方向のビューは問題ありませんが、垂直方向のビューでは、タブが別のタイトル バー レイヤーを作成しているように見えます。これは水平ビューと同じではありません。これについて私を案内してください。ありがとうございました。

ここに画像の説明を入力 ここに画像の説明を入力

4

1 に答える 1