Example usage for android.view Window FEATURE_NO_TITLE

List of usage examples for android.view Window FEATURE_NO_TITLE

Introduction

In this page you can find the example usage for android.view Window FEATURE_NO_TITLE.

Prototype

int FEATURE_NO_TITLE

To view the source code for android.view Window FEATURE_NO_TITLE.

Click Source Link

Document

Flag for the "no title" feature, turning off the title at the top of the screen.

Usage

From source file:com.rubika.aotalk.Market.java

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    settings = PreferenceManager.getDefaultSharedPreferences(this);
    SERVER = settings.getString("marketserver", SERVER);
    UPDATE = settings.getBoolean("marketautoupdate", UPDATE);
    INTERVAL = settings.getString("marketinterval", INTERVAL);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.market);/*from  w  ww  .ja  v a2 s  .  c  om*/

    status = (TextView) findViewById(R.id.status);

    marketposts = new ArrayList<MarketMessage>();

    marketlist = (ListView) findViewById(R.id.market);
    marketlist.setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL);

    msgadapter = new MarketMessageAdapter(this, marketposts);

    marketlist.setAdapter(msgadapter);
    marketlist.setFocusable(true);
    marketlist.setFocusableInTouchMode(true);
    marketlist.setItemsCanFocus(true);

    marketlist.setOnItemLongClickListener(new OnItemLongClickListener() {
        @Override
        public boolean onItemLongClick(AdapterView<?> av, View v, int pos, long id) {
            return false;
        }
    });

    handler.post(update);
}

From source file:com.example.de.taomi2.mediachooser.activity.BucketHomeFragmentActivity.java

@SuppressLint("ResourceAsColor")
@Override// w  w  w .  ja va  2s . co m
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_home_media_chooser);

    headerBarTitle = (TextView) findViewById(R.id.titleTextViewFromMediaChooserHeaderBar);
    headerBarCamera = (ImageView) findViewById(R.id.cameraImageViewFromMediaChooserHeaderBar);
    headerBarBack = (ImageView) findViewById(R.id.backArrowImageViewFromMediaChooserHeaderView);
    headerBarDone = (TextView) findViewById(R.id.doneTextViewViewFromMediaChooserHeaderView);
    mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost);

    headerBarTitle.setText(getResources().getString(R.string.video));
    headerBarCamera.setBackgroundResource(R.drawable.ic_video_unselect_from_media_chooser_header_bar);
    headerBarCamera.setTag(getResources().getString(R.string.video));

    headerBarBack.setOnClickListener(clickListener);
    headerBarCamera.setOnClickListener(clickListener);
    headerBarDone.setOnClickListener(clickListener);

    if (!MediaChooserConstants.showCameraVideo) {
        headerBarCamera.setVisibility(View.GONE);
    }

    mTabHost.setup(this, getSupportFragmentManager(), R.id.realTabcontent);

    if (MediaChooserConstants.showVideo) {
        mTabHost.addTab(
                mTabHost.newTabSpec("tab2")
                        .setIndicator(getResources().getString(R.string.videos_tab) + "      "),
                BucketVideoFragment.class, null);
    }

    if (MediaChooserConstants.showImage) {
        mTabHost.addTab(
                mTabHost.newTabSpec("tab1")
                        .setIndicator(getResources().getString(R.string.images_tab) + "      "),
                BucketImageFragment.class, null);
    }

    mTabHost.getTabWidget().setBackgroundColor(getResources().getColor(R.color.tabs_color));

    for (int i = 0; i < mTabHost.getTabWidget().getChildCount(); i++) {

        View childView = mTabHost.getTabWidget().getChildAt(i);
        TextView textView = (TextView) childView.findViewById(android.R.id.title);

        if (textView.getLayoutParams() instanceof RelativeLayout.LayoutParams) {

            RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) textView.getLayoutParams();
            params.addRule(RelativeLayout.CENTER_HORIZONTAL);
            params.addRule(RelativeLayout.CENTER_VERTICAL);
            params.height = RelativeLayout.LayoutParams.MATCH_PARENT;
            params.width = RelativeLayout.LayoutParams.WRAP_CONTENT;
            textView.setLayoutParams(params);

        } else if (textView.getLayoutParams() instanceof LinearLayout.LayoutParams) {
            LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) textView.getLayoutParams();
            params.gravity = Gravity.CENTER;
            textView.setLayoutParams(params);
        }
        textView.setTextColor(getResources().getColor(R.color.tabs_title_color));
        textView.setTextSize(convertDipToPixels(10));
    }

    ((TextView) (mTabHost.getTabWidget().getChildAt(1).findViewById(android.R.id.title)))
            .setTextColor(getResources().getColor(R.color.headerbar_selected_tab_color));
    ((TextView) (mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)))
            .setTextColor(Color.WHITE);

    mTabHost.setOnTabChangedListener(new OnTabChangeListener() {

        @Override
        public void onTabChanged(String tabId) {

            android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager();
            BucketImageFragment imageFragment = (BucketImageFragment) fragmentManager.findFragmentByTag("tab1");
            BucketVideoFragment videoFragment = (BucketVideoFragment) fragmentManager.findFragmentByTag("tab2");
            android.support.v4.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();

            if (tabId.equalsIgnoreCase("tab1")) {

                headerBarTitle.setText(getResources().getString(R.string.image));
                headerBarCamera.setBackgroundResource(R.drawable.selector_camera_button);
                headerBarCamera.setTag(getResources().getString(R.string.image));

                if (imageFragment == null) {
                    BucketImageFragment newImageFragment = new BucketImageFragment();
                    fragmentTransaction.add(R.id.realTabcontent, newImageFragment, "tab1");

                } else {

                    if (videoFragment != null) {
                        fragmentTransaction.hide(videoFragment);
                    }

                    fragmentTransaction.show(imageFragment);

                }
                ((TextView) (mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)))
                        .setTextColor(getResources().getColor(R.color.headerbar_selected_tab_color));
                ((TextView) (mTabHost.getTabWidget().getChildAt(1).findViewById(android.R.id.title)))
                        .setTextColor(Color.WHITE);

            } else {
                headerBarTitle.setText(getResources().getString(R.string.video));
                headerBarCamera.setBackgroundResource(R.drawable.selector_video_button);
                headerBarCamera.setTag(getResources().getString(R.string.video));

                if (videoFragment == null) {

                    final BucketVideoFragment newVideoFragment = new BucketVideoFragment();
                    fragmentTransaction.add(R.id.realTabcontent, newVideoFragment, "tab2");

                } else {

                    if (imageFragment != null) {
                        fragmentTransaction.hide(imageFragment);
                    }

                    fragmentTransaction.show(videoFragment);
                }

                ((TextView) (mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)))
                        .setTextColor(Color.WHITE);
                ((TextView) (mTabHost.getTabWidget().getChildAt(1).findViewById(android.R.id.title)))
                        .setTextColor(getResources().getColor(R.color.headerbar_selected_tab_color));

            }

            fragmentTransaction.commit();
        }
    });

    RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) headerBarCamera.getLayoutParams();
    params.height = convertDipToPixels(40);
    params.width = convertDipToPixels(40);
    headerBarCamera.setLayoutParams(params);
    headerBarCamera.setScaleType(ScaleType.CENTER_INSIDE);
    headerBarCamera.setPadding(convertDipToPixels(15), convertDipToPixels(15), convertDipToPixels(15),
            convertDipToPixels(15));

}

From source file:com.dlam.activity.T4Activity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    mPullListView = new PullToRefreshListView(this);
    setContentView(mPullListView);//from  www . j  a  v  a 2s  .c o  m
    mContext = T4Activity.this;
    init();
    getData();
}

From source file:com.ez.gallery.PhotoBaseActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    super.onCreate(savedInstanceState);
    ActivityManager.getActivityManager().addActivity(this);
    mMediaScanner = new MediaScanner(this);
    DisplayMetrics dm = DeviceUtils.getScreenPix(this);
    mScreenWidth = dm.widthPixels;//from   ww  w  .j  a  va2s.com
    mScreenHeight = dm.heightPixels;

}

From source file:com.teleca.jamendo.activity.ArtistActivity.java

/** Called when the activity is first created. */
@Override//from  w  w w.ja  v a 2 s .  co  m
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.artist);

    mArtistBar = (ArtistBar) findViewById(R.id.ArtistBar);
    mAlbumGridView = (GridView) findViewById(R.id.AlbumGridView);

    mArtistBar.setDescription(R.string.discography);

    mArtist = (Artist) getIntent().getSerializableExtra("artist");
    mAlbumGridAdapter = new AlbumGridAdapter(this);
    mArtistBar.setArtist(mArtist);

    loadAlbums();

    mAlbumGridView.setOnItemClickListener(mOnItemClickListener);
    mAlbumGridView.setOnItemLongClickListener(mOnItemLongClickListener);

    mDonateButton = (Button) findViewById(R.id.DonateButton);
    mDonateButton.setOnClickListener(mDonateClick);
    mWebpageButton = (Button) findViewById(R.id.WebpageButton);
    mWebpageButton.setOnClickListener(mWebpageClick);

    Toast.makeText(ArtistActivity.this, R.string.long_press_playlist, Toast.LENGTH_SHORT).show();

    mGestureOverlayView = (GestureOverlayView) findViewById(R.id.gestures);
    mGestureOverlayView
            .addOnGesturePerformedListener(JamendoApplication.getInstance().getPlayerGestureHandler());
}

From source file:gov.nasa.arc.geocam.geocam.CameraPreviewActivity.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Window and view properties
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.camera_preview);

    // Load bitmap from intent data and display in imageview
    mImageUri = getIntent().getData();//from  ww  w  . j av  a 2  s.  c o  m
    try {
        mImageData = new JSONObject(getIntent().getExtras().getString("data"));
    } catch (JSONException e1) {
        Log.d(GeoCamMobile.DEBUG_ID, "Error unserializing JSON data from intent");
        mImageData = new JSONObject();
    }

    try {
        final BitmapFactory.Options opts = new BitmapFactory.Options();
        opts.inSampleSize = 4;
        InputStream in = getContentResolver().openInputStream(mImageUri);
        Bitmap bitmap = BitmapFactory.decodeStream(in, null, opts);

        //Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), mImageUri);
        ImageView imageView = (ImageView) findViewById(R.id.camera_preview_imageview);
        imageView.setAdjustViewBounds(true);
        imageView.setScaleType(ScaleType.CENTER_INSIDE);
        imageView.setImageBitmap(bitmap);
    } catch (FileNotFoundException e) {
        Log.d(GeoCamMobile.DEBUG_ID, "Error loading bitmap in CameraPreviewActivity");
    }

    SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
    String defaultNotes = settings.getString(GeoCamMobile.SETTINGS_DEFAULT_NOTES_KEY, "");

    // Set default notes
    EditText notesText = (EditText) findViewById(R.id.camera_preview_edittext);
    notesText.setText(defaultNotes + " ");

    // Buttons
    mFireButton = (ImageButton) findViewById(R.id.camera_preview_fire_button);
    mFireButton.setImageDrawable(getResources().getDrawable(R.drawable.fire_icon_default));
    mFireButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            Intent intent = new Intent();
            intent.setAction(Intent.ACTION_PICK);
            intent.setClass(CameraPreviewActivity.this, FireIconActivity.class);
            startActivityForResult(intent, PICK_ICON_REQUEST);
        }
    });

    final ImageButton deleteButton = (ImageButton) findViewById(R.id.camera_preview_delete_button);
    deleteButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            CameraPreviewActivity.this.showDialog(DIALOG_DELETE_PHOTO);
        }
    });

    final ImageButton saveButton = (ImageButton) findViewById(R.id.camera_preview_save_button);
    saveButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            mImageNote = ((EditText) findViewById(R.id.camera_preview_edittext)).getText().toString();
            Log.d(GeoCamMobile.DEBUG_ID, "Setting image note to: " + mImageNote);
            saveWithAnnotation();
        }
    });

    mForeground = new ForegroundTracker(this);
}

From source file:com.ankit.touchreview.FinalActivity.java

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.finalactivity);

    logo = (ImageView) findViewById(R.id.logo);
    LinearLayout1 = (LinearLayout) findViewById(R.id.LinearLayout1);
    mContext = this;

    email = (EditText) findViewById(R.id.email);
    message = (TextView) findViewById(R.id.message);

    DisplayMetrics metrics = this.getResources().getDisplayMetrics();
    int width = metrics.widthPixels;
    //int height = metrics.heightPixels;
    logo.getLayoutParams().width = width / 2;
    Button finish = (Button) findViewById(R.id.finish);
    finish.getLayoutParams().width = width / 3;

    setThemeImage();/*w  ww  .  jav  a2 s .com*/
    setLogoImage();
    setMessage();
    mProcessing = new ProgressDialog(mContext);
    mProcessing.setCancelable(true);
    mProcessing.setMessage("Please Wait");
    mProcessing.setOnCancelListener(new OnCancelListener() {
        @Override
        public void onCancel(DialogInterface dialog) {
            if (submitted)

                finish();

        }
    });
}

From source file:cn.xcom.helper.activity.AuthorizedActivity.java

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_authorized);
    mContext = this;
    initView();//from w  w  w  .  j a  v  a  2 s.c  om
}

From source file:com.moodmap.SplashScreenActivity.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.splash_screen_layout);
    context = SplashScreenActivity.this;
    initDatabase();/*  w  w  w .  ja v  a 2s . c  om*/
    // STC spLaunchCount =
    // context.getSharedPreferences("ActivityLonchCount", MODE_PRIVATE);
    // STC spTerms = context.getSharedPreferences("Terms", MODE_PRIVATE);
    spIDs = PreferenceManager.getDefaultSharedPreferences(this); // STC
                                                                 // context.getSharedPreferences("IDs",
                                                                 // MODE_PRIVATE);
    spLaunchCount = spIDs; // use one preference STC 12/28/11
    spTerms = spIDs; // use one preference STC 12/28/11

    getDeviceId(this);// get Device ID

    // studyID = spIDs.getString("StudyID", "");
    // participantID = spIDs.getString("participantID", "");
    deviceID = spIDs.getString("DeviceID", "");
    isAgree = spIDs.getBoolean("isAgree", false);

    // isDeviceRegisterd = spIDs.getBoolean("isDeviceRegisterd", false);
    // STC 10/13/11 if(Utils.networkStatus(SplashScreenActivity.this))
    {
        loadNextActivity();
    }
    /*
     * STC 10/13/11 else{ AlertDialog.Builder builder = new
     * AlertDialog.Builder(SplashScreenActivity.this);
     * builder.setMessage("No Network connection") .setCancelable(false)
     * .setPositiveButton("Ok", new DialogInterface.OnClickListener() {
     * public void onClick(DialogInterface dialog, int id) {
     * SplashScreenActivity.this.finish(); /**For Testing offline* /
     * //showNextActivity(); } }); AlertDialog alert = builder.create();
     * alert.show(); }
     */

}

From source file:com.dazone.crewchat.libGallery.activity.HomeFragmentActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_home_media_chooser);

    headerBarTitle = (TextView) findViewById(R.id.titleTextViewFromMediaChooserHeaderBar);
    headerBarCamera = (ImageView) findViewById(R.id.cameraImageViewFromMediaChooserHeaderBar);
    headerBarBack = (ImageView) findViewById(R.id.backArrowImageViewFromMediaChooserHeaderView);
    headerBarDone = (TextView) findViewById(R.id.doneTextViewViewFromMediaChooserHeaderView);
    mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost);

    mTabHost.setup(this, getSupportFragmentManager(), R.id.realTabcontent);
    headerBarBack.setOnClickListener(this);
    headerBarCamera.setOnClickListener(this);
    headerBarDone.setOnClickListener(this);

    if (!MediaChooserConstants.showCameraVideo) {
        headerBarCamera.setVisibility(View.GONE);
    }//from  www.  j  a v  a  2  s. c o m

    if (getIntent() != null && (getIntent().getBooleanExtra("isFromBucket", false))) {

        if (getIntent().getBooleanExtra("image", false)) {
            headerBarTitle.setText(getResources().getString(R.string.image));
            setHeaderBarCameraBackground(getResources().getDrawable(R.drawable.selector_camera_button));

            headerBarCamera.setTag(getResources().getString(R.string.image));

            Bundle bundle = new Bundle();
            bundle.putString("name", getIntent().getStringExtra("name"));
            mTabHost.addTab(
                    mTabHost.newTabSpec("tab1")
                            .setIndicator(getResources().getString(R.string.images_tab) + "     "),
                    ImageFragment.class, bundle);

        } else {
            headerBarTitle.setText(getResources().getString(R.string.video));
            setHeaderBarCameraBackground(getResources().getDrawable(R.drawable.selector_video_button));
            headerBarCamera.setTag(getResources().getString(R.string.video));

            Bundle bundle = new Bundle();
            bundle.putString("name", getIntent().getStringExtra("name"));
            mTabHost.addTab(
                    mTabHost.newTabSpec("tab2")
                            .setIndicator(getResources().getString(R.string.videos_tab) + "      "),
                    VideoFragment.class, bundle);
        }
    } else {

        if (MediaChooserConstants.showVideo) {
            mTabHost.addTab(
                    mTabHost.newTabSpec("tab2")
                            .setIndicator(getResources().getString(R.string.videos_tab) + "      "),
                    VideoFragment.class, null);
        }

        if (MediaChooserConstants.showImage) {
            headerBarTitle.setText(getResources().getString(R.string.image));
            setHeaderBarCameraBackground(getResources().getDrawable(R.drawable.selector_camera_button));
            headerBarCamera.setTag(getResources().getString(R.string.image));

            mTabHost.addTab(
                    mTabHost.newTabSpec("tab1")
                            .setIndicator(getResources().getString(R.string.images_tab) + "      "),
                    ImageFragment.class, null);
        }

        if (MediaChooserConstants.showVideo) {
            headerBarTitle.setText(getResources().getString(R.string.video));
            setHeaderBarCameraBackground(getResources().getDrawable(R.drawable.selector_video_button));
            headerBarCamera.setTag(getResources().getString(R.string.video));
        }
    }

    mTabHost.getTabWidget().getChildAt(0).setVisibility(View.GONE);

    for (int i = 0; i < mTabHost.getTabWidget().getChildCount(); i++) {

        TextView textView = (TextView) mTabHost.getTabWidget().getChildAt(i).findViewById(android.R.id.title);
        if (textView.getLayoutParams() instanceof RelativeLayout.LayoutParams) {

            RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) textView.getLayoutParams();
            params.addRule(RelativeLayout.CENTER_HORIZONTAL);
            params.addRule(RelativeLayout.CENTER_VERTICAL);
            params.height = RelativeLayout.LayoutParams.MATCH_PARENT;
            params.width = RelativeLayout.LayoutParams.WRAP_CONTENT;
            textView.setLayoutParams(params);

        } else if (textView.getLayoutParams() instanceof LinearLayout.LayoutParams) {
            LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) textView.getLayoutParams();
            params.gravity = Gravity.CENTER;
            textView.setLayoutParams(params);
        }
        textView.setTextColor(getResources().getColor(R.color.tabs_title_color));
        textView.setTextSize(Utils.convertDipToPixels(this, 10));

    }

    if ((mTabHost.getTabWidget().getChildAt(0) != null)) {
        ((TextView) (mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)))
                .setTextColor(Color.WHITE);
    }

    if ((mTabHost.getTabWidget().getChildAt(1) != null)) {
        ((TextView) (mTabHost.getTabWidget().getChildAt(1).findViewById(android.R.id.title)))
                .setTextColor(getResources().getColor(R.color.headerbar_selected_tab_color));
    }

    mTabHost.setOnTabChangedListener(new OnTabChangeListener() {

        @Override
        public void onTabChanged(String tabId) {

            android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager();
            ImageFragment imageFragment = (ImageFragment) fragmentManager.findFragmentByTag("tab1");
            VideoFragment videoFragment = (VideoFragment) fragmentManager.findFragmentByTag("tab2");
            android.support.v4.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();

            if (tabId.equalsIgnoreCase("tab1")) {

                headerBarTitle.setText(getResources().getString(R.string.image));
                setHeaderBarCameraBackground(getResources().getDrawable(R.drawable.selector_camera_button));
                headerBarCamera.setTag(getResources().getString(R.string.image));

                if (imageFragment != null) {

                    if (videoFragment != null) {
                        fragmentTransaction.hide(videoFragment);
                    }
                    fragmentTransaction.show(imageFragment);
                }
                ((TextView) (mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)))
                        .setTextColor(getResources().getColor(R.color.headerbar_selected_tab_color));
                ((TextView) (mTabHost.getTabWidget().getChildAt(1).findViewById(android.R.id.title)))
                        .setTextColor(Color.WHITE);

            } else {
                headerBarTitle.setText(getResources().getString(R.string.video));
                setHeaderBarCameraBackground(getResources().getDrawable(R.drawable.selector_video_button));
                headerBarCamera.setTag(getResources().getString(R.string.video));

                if (videoFragment != null) {

                    if (imageFragment != null) {
                        fragmentTransaction.hide(imageFragment);
                    }

                    fragmentTransaction.show(videoFragment);
                    if (videoFragment.getAdapter() != null) {
                        videoFragment.getAdapter().notifyDataSetChanged();
                    }
                }
                ((TextView) (mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)))
                        .setTextColor(Color.WHITE);
                ((TextView) (mTabHost.getTabWidget().getChildAt(1).findViewById(android.R.id.title)))
                        .setTextColor(getResources().getColor(R.color.headerbar_selected_tab_color));
            }

            fragmentTransaction.commit();
        }
    });

    RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) headerBarCamera.getLayoutParams();
    params.height = Utils.convertDipToPixels(this, 40);
    params.width = Utils.convertDipToPixels(this, 40);
    headerBarCamera.setLayoutParams(params);
    headerBarCamera.setScaleType(ScaleType.CENTER_INSIDE);
    headerBarCamera.setPadding(Utils.convertDipToPixels(this, 15), Utils.convertDipToPixels(this, 15),
            Utils.convertDipToPixels(this, 15), Utils.convertDipToPixels(this, 15));

}