importandroid.view.WindowManager;//导入方法依赖的package包/类privatevoidshowWindow(){ WindowManager.LayoutParamslayoutParams =newWindowManager.LayoutParams();// layoutParams.type = WindowManager.LayoutParams.TYPE_TOAST;layoutParams.type = TYPE_SYSTEM_OVERLAY; layoutParams.flags = WindowManager.LayoutParams.FLAG_FU...
displays = mDisplayManager.getDisplays(); if(displays.length > 1){ // displays[1]是副屏 presentation = new SecondScreenPresentation(this, displays[1]); presentation.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY-1); } } } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11...
type = WindowManager.LayoutParams.TYPE_APPLICATION;// 2; // params.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT // | WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY; // params.type = 2003;//WindowManager.LayoutParams.TYPE_PHONE; params.format = -2; params.flags = LayoutParams.FLAG_NOT...
public static final int TYPE_APPLICATION_ATTACHED_DIALOG = FIRST_SUB_WINDOW +3; 媒体信息。显示在媒体层和程序窗口之间,需要实现透明(半透明)效果。(例如显示字幕) public static final int TYPE_APPLICATION_MEDIA_OVERLAY = FIRST_SUB_WINDOW +4; 子窗口结束。( End of types of sub-windows ) public sta...
MemoryType PackageName 擁有此視窗的套件名稱。 PeerReference (繼承來源 Object) PreferMinimalPostProcessing 指出此視窗是否希望連接的顯示器在產生的影像或視訊畫面上執行最少的後置處理。 PreferredDisplayModeId 視窗慣用顯示模式的識別碼。 PreferredRefreshRate 視窗慣用的重新整理速率。 RotationAnimation 定義旋...
public static final int TYPE_KEYGUARD = FIRST_SYSTEM_WINDOW +4; 信息窗口。用于显示toast。 public static final int TYPE_TOAST = FIRST_SYSTEM_WINDOW +5; 系统顶层窗口。显示在其他一切内容之上。此窗口不能获得输入焦点,否则影响锁屏。 public static final int TYPE_SYSTEM_OVERLAY = FIRST_SYSTEM_WINDOW ...
layout.fragment_dialogs, displayList); res.setBackgroundColor(ActorSDK.sharedActor().style.getMainBackgroundColor()); // Footer FrameLayout footer = new FrameLayout(getActivity()); footer.setLayoutParams(new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, Screen.dp(160))); footer.set...
ViewDebug.IntToString ViewDebug.RecyclerTraceType ViewFocusability ViewGroup ViewGroup.ChildViewAddedEventArgs ViewGroup.ChildViewRemovedEventArgs ViewGroup.IOnHierarchyChangeListener ViewGroup.LayoutParamsViewGroup.MarginLayoutParams ViewGroup.MarginLayoutParams 建構函式 屬性 方法 ViewGroupOverlay ...
WindowManagerEventType WindowManagerFlags WindowManagerInvalidDisplayException WindowManagerLayoutParams WindowManagerLayoutParams.InterfaceConsts WindowManagerTypes WindowMetrics WindowProgress WindowRotationAnimation Android.Views.Accessibility Android.Views.Animations
ViewDebug.IntToString ViewDebug.RecyclerTraceType ViewFocusability ViewGroup ViewGroup.ChildViewAddedEventArgs ViewGroup.ChildViewRemovedEventArgs ViewGroup.IOnHierarchyChangeListener ViewGroup.LayoutParamsViewGroup.MarginLayoutParams ViewGroup.MarginLayoutParams 建構函式 屬性 方法 ViewGroupOverlay ...