简体   繁体   中英

Hide Action bar In a fragment

I'd like to hide the Action Bar of my Fragment. I searched on Google for 1-2h. But I didn't find any proper anwser... So if you could help me that would be nice.

它称为ActionBar您可以使用getSupportActionBar().hide();隐藏Action Bar getSupportActionBar().hide();

您可以尝试使用getActivity().getActionBar().hide();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM