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.
如何动态隐藏标签?我正在使用 ActionBarShelock 制作滑动标签和 SearchView。当我在列表视图中显示搜索结果时,我想隐藏整行选项卡。有谁知道这是否可能?
如果你只想隐藏标签,你可以调用:
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
完成后,您可以返回标签模式:
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);