0

I am trying to make a launcher application that launches some predefined set of apps in the multi-window Free form mode, and I have made some progress in doing that so far. However I am working on a new use case where I need to restrict the resizing capacity of a newly launched window to either horizontal/vertical direction but not in both.

Here is what it looks like. enter image description here

Presently both the activity windows can be freely expanded/shrunk in both horizontal/vertical directions. However I want to restrict to any one of them. I cannot find any means to do this yet, and would really appreciate any help. Thanks in advance.

Som
  • 83
  • 2
  • 9
  • I am not aware that this is an available option. – CommonsWare Jul 14 '18 at 18:06
  • I did a sort of work around not sure if it is very efficient. I did set a RestrictedCaptionAreaListener [link] (https://developer.android.com/reference/android/view/Window.OnRestrictedCaptionAreaChangedListener# ) and in the listener function I am always setting the window height to a hard-coded value by: getWindow().setAttributes() – Som Jul 14 '18 at 18:59

0 Answers0