Java Code Examples for com.actionbarsherlock.app.ActionBar#setDisplayHomeAsUpEnabled()

The following examples show how to use com.actionbarsherlock.app.ActionBar#setDisplayHomeAsUpEnabled() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HuoCheXingAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar(){ 
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false); 
	actBar.setDisplayShowHomeEnabled(true); 
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("火车行简介");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 2
Source File: MoreAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar(); 
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("更多");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 3
Source File: ReminderSetupAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("到站提醒设置");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 4
Source File: AddEditHostActivity.java    From hosts-editor-android with Apache License 2.0 5 votes vote down vote up
private void initActionBar(Host hostToEdit) {
    int titleRes;
    if (hostToEdit == null) {
        titleRes = R.string.add_host_title;
    } else {
        titleRes = R.string.edit_host_title;
    }

    ActionBar actionBar = getSupportActionBar();
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setDisplayShowTitleEnabled(true);
    actionBar.setTitle(titleRes);
}
 
Example 5
Source File: AboutAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("关于");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 6
Source File: ChatSetupAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("聊天设置");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 7
Source File: RegisterActivity.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	//自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("用户注册");
	actBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_tab_bg));
}
 
Example 8
Source File: ResetPwdAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	//自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("重置密码");
	actBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_tab_bg));
}
 
Example 9
Source File: FindPwdActivity.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	//自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("找回密码");
	actBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_tab_bg));
}
 
Example 10
Source File: EditImageAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	// 自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("选择头像");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 11
Source File: PrefsLoaderActivity.java    From CSipSimple with GNU General Public License v3.0 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setTitle(PrefsLogic.getTitleResourceForType(getPreferenceType()));
    ActionBar ab = getSupportActionBar();
    if(ab != null) {
        ab.setDisplayHomeAsUpEnabled(true);
    }
}
 
Example 12
Source File: AboutActivity.java    From magpi-android with MIT License 5 votes vote down vote up
@Override
  public void onCreate(Bundle savedInstanceState) {
      
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_about);
      ActionBar actionBar = getSupportActionBar();
      actionBar.setDisplayHomeAsUpEnabled(true);
      actionBar.setHomeButtonEnabled(true);
      try {
	String versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
	((TextView)this.findViewById(R.id.label_version)).setText(versionName);
} catch (NameNotFoundException e) {
	e.printStackTrace();
}
  }
 
Example 13
Source File: WeatherInfoAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
/**
 * 初始化ActionBar
 */
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	//自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle(city+"天气");
	actBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_tab_bg));
}
 
Example 14
Source File: TrainInfoAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	// 自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("我的车次");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 15
Source File: AntiTheftAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("安全防盗");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 16
Source File: ChatRoomAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	//自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("车友聊天室");
	actBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_tab_bg));
}
 
Example 17
Source File: MonitorMangAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("抢票监控");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 18
Source File: OrderAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar(){ 
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false); 
	actBar.setDisplayShowHomeEnabled(true); 
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("其它订单");
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}
 
Example 19
Source File: ShareContentAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
/**
 * 初始化ActionBar
 */
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	//自定义不显示logo
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setTitle("分享");
	actBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_tab_bg));
}
 
Example 20
Source File: BaseAty.java    From Huochexing12306 with Apache License 2.0 5 votes vote down vote up
private void initActionBar() {
	ActionBar actBar = getSupportActionBar();
	actBar.setDisplayShowTitleEnabled(false);
	actBar.setDisplayShowHomeEnabled(true);
	actBar.setDisplayHomeAsUpEnabled(true);
	actBar.setDisplayShowTitleEnabled(true);
	actBar.setBackgroundDrawable(getResources().getDrawable(
			R.drawable.actionbar_tab_bg));
}