Code example for FragmentActivity

Methods: setTitle

0
 
	} 
 
	@Override 
	public void setTitle(CharSequence title){
		super.setTitle(title);
		mTitleView.setText(title);
	} 
 
	private void hideTitle(){ 
 
		mHandler.sendMessageDelayed(mHandler.obtainMessage(HIDE_TITLE),
				Math.max(0, OSD_TIMEOUT - (System.currentTimeMillis() - mTitleShowStart)));
	} 
 
	private void hideTitleNow(){ 
		if (mTitleView.getVisibility() != View.INVISIBLE){
			mTitleView.startAnimation(AnimationUtils.loadAnimation(VideoPlayer.this, R.anim.fade_out));
			mTitleView.setVisibility(View.INVISIBLE);
		} 
	}