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.
私のアプリケーションにはボタンがあり、誰かがこのボタンをクリックするとメニューが表示されるようにしたいと考えています。
1枚目の写真のようなメニューになります。これを行う方法?
ボタンクリックイベントでActivity.openOptionsMenuを呼び出す必要があります。
ボタンをクリックして書き込みます
this.openOptionsMenu();
以下の URL に従ってください。例は http://developer.android.com/guide/topics/ui/menus.html#PopupMenuです。