protected void init() { setContentView(R.layout.activity_user_profile); session = Session.getInstance(this); session.addLoginListener(this); isMainTabActivity = getIntent().getBooleanExtra(IS_MAIN_TAB_ACTIVITY, false); title = (UserTitle) findViewById(R.id.Titlebar); userCell = (UserCell) findViewById(R.id.UserCell); userProfileView = (UserProfileView) findViewById(R.id.user_profile_view); if (!isMainTabActivity) { title.setIdentifiable(this); title.setUser(getUser()); title.setFollowable(userCell); title.setTitle(R.string.title_user_info); } userCell.setUser(getUser()); userCell.setIdentifiable(this); userCell.addRefreshable(userProfileView); if (!isMainTabActivity) userCell.addRefreshable(title); else dismissTitle(); }
public void dismissTitle() { title.setVisibility(View.GONE); }
public void showTitle() { title.setVisibility(View.VISIBLE); }