Dear all,
I want to implement multi-window in android like  microsoft windows.
First step, I want to let app window size smaller than desktop window
size.
Now I can let app window size smaller by using getwindow().setlayout
(x,y);
but I do not want to modify every app source and rebuild them.
I try to solve this problem form framework.
I found WindowManagerService.java has three function.
computeNewConfigurationLocked()
performLayoutLockedInner()
performLayoutAndPlaceSurfacesLockedInner()

I modify dw = mDisplay.getWidth(); -> dw = 240
            dh = mDisplay.getHeight(); -> dh = 320

Then, I can let window small without modify every app, but the desktop
window get smaller too.
This is wrong for me to implement multi-windows.
I think I shoud like following

In WindowManagerService.java
    if mDisplay.getWidth() is app window, I will modify its size.
    else mDisplay.getHeight() is not winodw, I will do nothing.

Please help me and give me some suggestions.
Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to