여기 내 ActionBar
관련 코드입니다 :내 액션 바을 숨기는 방법을
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(R.string.app_name);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
actionBar.setStackedBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.colorTextHint)));
actionBar.setDisplayShowHomeEnabled(true); // To Show the Home Icon
actionBar.setHomeButtonEnabled(false); // To get the click Event of the
// Home Button
actionBar.setDisplayHomeAsUpEnabled(true); // To Unable Home Button to
// work as a Navigation
// Drawer Opener.
pager = (ViewPager) findViewById(R.id.viewPager);
pager.setAdapter(new MyPagerAdapter(getSupportFragmentManager()));
for (String tab_name : tabs)
{
actionBar.addTab(actionBar.newTab().setText(tab_name).setTabListener(this));
}
actionBar.setSelectedNavigationItem(0);
나는이 ActionBar
는하지만 같은 단지이 부분을 원하는 무엇입니까 내 ActionBar
:
도움을 주셔서 미리 감사드립니다 & 제안.
'툴바'를'ActionBar'로 사용하고 원하는 부분을 넣으십시오. – earthw0rmjim