This simple tutorial is regarding to hide the title bar in android.
This is simple but very useful many time when we want to hide title bar in our android application.
requestWindowFeature(Window.FEATURE_NO_TITLE);
Put this line of code above setContentView otherwise it's give exception.
Try to use below code snippet for hiding title bar in your application.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); }
No comments:
Post a Comment