Searched refs:windowParams (Results 1 – 2 of 2) sorted by relevance
67 WindowManager.LayoutParams windowParams = getWindow().getAttributes(); in onCreate() local68 windowParams.width = screenWidth - marginPx * 2; in onCreate()69 windowParams.height = WindowManager.LayoutParams.WRAP_CONTENT; in onCreate()70 windowParams.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL; in onCreate()71 windowParams.horizontalMargin = 0f; in onCreate()72 windowParams.verticalMargin = (float) marginPx / screenHeight; in onCreate()73 windowParams.format = PixelFormat.TRANSPARENT; in onCreate()74 windowParams.type = WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG; in onCreate()75 windowParams.flags |= WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; in onCreate()76 windowParams.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; in onCreate()[all …]
22 val windowParams = WindowManager.LayoutParams() in onCreate() constant23 windowParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY in onCreate()24 windowManager.addView(mainLayout, windowParams) in onCreate()