我需要添加一个按钮到FragmentTabHost
. 如何构建这样的东西?
FragmentTabHost tabHost = (FragmentTabHost) view.findViewById(R.id.tab_host);
tabHost.setup(getActivity(), getActivity().getSupportFragmentManager(),
R.id.tab_content);
tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("TAB 1"),
MatchStatisticsFragment.class, null);
tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("TAB 2"),
EventsListFragment.class, null);
// can I add right-align button there?