![]() I need put a overlay in native Dialer but sometimes the native dialer put above mi custom view, I solved this by adding the element several times with WindowManager but sometimes the view is displayed twice. wrapcontentmatchparentdialogdialogmargin matchparentdialogmarginmargindialogbackground tBackgroundDrawable (new ColorDrawable (Color. ![]() ![]() mWindowManager.addView (måustomView, getLayoutParams ()) Kick. See ViewGroup Layout Attributes for a list of all child view attributes. also, I need 'getLayoutParams' method to calculate where to place the view. LayoutParams are used by views to tell their parents how they want to be laid out. Ref: open child window inside a parent window in wpf using MVVM I am using MVVM framework and the technique you have men. I'm adding the custom view using a window manager, it must be on the top of the views hierarchy. How I can know if a view is being displayed before adding with WindowManager? My question is related to following article where you posted your answer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |