Showing posts with label How to make window full screen in android programmatically.. Show all posts
Showing posts with label How to make window full screen in android programmatically.. Show all posts

Saturday, 27 July 2019

How to make window full screen in android

To make window full screen we have to define one line code in onCreate method,


@Overrideprotected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_main);

Done , above one line code in bold font we have to declare for window full screen.

Snackbar in Kotlin

How to show snackbar in place of toast message , below is the code for showing snackbar in kotlin. Below code is put in Utils.kt  (common fi...