I implemented custom actionBar in my Project. It has two Textview I want to change the text Programatically how to do that. I tried the following code but there is no change in my action bar
this.getActionBar().setDisplayShowCustomEnabled(true);
this.getActionBar().setDisplayShowTitleEnabled(false);
this.getActionBar().setDisplayUseLogoEnabled(false);
this.getActionBar().setDisplayHomeAsUpEnabled(false);
this.getActionBar().setDisplayShowHomeEnabled(false);
this.getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
LayoutInflater inflator = LayoutInflater.from(this);
View v = inflator.inflate(R.layout.actionbarlayout, null);
mSiteName= ((TextView)v.findViewById(R.id.sitenameastitle));
mSiteName.setText("helloooo");
this.getActionBar().setCustomView(v);