I am trying to remove title bar from my activity but it is not getting removed.
Here is my code
public class SplashScreen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_splash_screen);
}
}
With or without the requestWindow line the output is the same then what is the use of that line?
I would reccomend editing your theme with no title bar. For example use of of these...