[英]android pop up menu
您可以在應用程序中添加一個按鈕,然后使用該按鈕將搜索欄的可見性從View.GONE
為View.VISIBLE
。 像這樣:
final TransparentPanel transparentPanel = ... //however you initialize
transparentPanel.setVisibility(View.GONE); //make it invisible to start
button.setOnClickListener(new View.OnClickListener(){
//Make the panel visible whenever someone clicks on your new button
transparentPanel.setVisibility(View.VISIBLE);
});
//add the button to whatever ViewGroup transparentPanel lives in
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.