How to create the activity full screen in android programmatically using kotlin.
Thanks!
How to create the activity full screen in android programmatically using kotlin.
Thanks!
Import Window packages
import android.view.Window
import android.view.WindowManager
Add your onCreate method
override fun onCreate(savedInstanceState: Bundle?) {
requestWindowFeature(Window.FEATURE_NO_TITLE)
super.onCreate(savedInstanceState)
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN)
setContentView(R.layout.activity_test_test)
}