There was already discussion on this topic on this or a related list a while ago; please search through the archives. (Summary: you are in for a world of work.)
On Tue, Jul 7, 2009 at 1:19 AM, Chris <chrisha...@gmail.com> wrote: > > 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. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---