Popular Posts

There was an error in this gadget

Jun 25, 2012

Hide Title in android application

You can hide your android application title....

Create MyFirstAndroidApp.Java Class  :   -----
-----------------------------------------------


package my.MyFirstAndroidApp;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;

import android.view.View;
import android.view.View.OnClickListener;

import android.widget.Button;
import android.widget.Toast;

public class MyFirstAndroidAppActivity extends Activity { 
   
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       
        // -- hides the title bar
        requestWindowFeature(Window.FEATURE_NO_TITLE);
       
        setContentView(R.layout.main);
    }
}

No comments:

Post a Comment