Dear all,
I want to implement multi-window in android like Microsoft Windows.
First, I want to let app window size smaller than desktop window
(system window).
Now, I can let app window size smaller than desktop window by using
getwindow.setLayout(x,y)
But, I do not want to modify every app source code and rebuild them.
I try to solve this problem from framework.
I find WindowManagerService.java has three functions.
computeNewConfigurationLocked()
performLayoutLockedInner()
performLayoutAndPlaceSurfacesLockedInner()
I modify dw = mDisplay.getWidth(); to dw = 240;
dh = mDisplay.getHeight(); to dh = 320;
Then, every app window size change to 240*320, but desktop window is
smaller, too.
This is wrong for me to implememt multi-windows.
I think, in WindowManagerService.java. I do the following.
if dw = mDisplay.getWidth() is app window, I modify its
size.
else I do nothing.
Please help me and give me any suggestions.
Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---