Code example for LinearLayout

Methods: getVisibility, setVisibility, startAnimation

0
	public Fragment getCurrentVisibleFragment() {
		return mCurrentVisibleFragment;
	} 
 
	public void hideIndicator() { 
		if (mIndicator.getVisibility() == View.GONE) return;
		mIndicator.setVisibility(View.GONE);
		mIndicator.startAnimation(AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_out));
	} 
 
	@Override 
	public void onActivityCreated(final Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		final Bundle args = getArguments();
		mThemeColor = ThemeUtils.getThemeColor(getActivity());
		mAdapter = new SupportTabsAdapter(getActivity(), getChildFragmentManager(), null);
		mAdapter.addTab(SearchTweetsFragment.class, args, getString(R.string.tweets), R.drawable.ic_tab_twitter, 0);
		mAdapter.addTab(SearchUsersFragment.class, args, getString(R.string.users), R.drawable.ic_tab_person, 1);
		mViewPager.setAdapter(mAdapter);
		mViewPager.setOnPageChangeListener(this);
		mViewPager.setOffscreenPageLimit(2);