Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
menu.xmlファイルにリストせずにアクション バーに 2 つの画像を表示したいということは、画像ボタンまたはボタンでカスタマイズしたいということであり、アクション バーに背景色を設定したいということです。私の深い知識?
必要に応じてレイアウトを設計し、コードを使用します
actionBar.setCustomView(R.layout.test_action);
アクションバーからIDを見つけることで、ボタンや画像を使用できます。