Hi Luke,

I think we should do some filter in WindowManagerService.java, just
like you mention.
But I can not find a global window.attribute to do this.
I try to modify window.java and in void setLayout() funtion, do

public void setLayout(int width, int height)

    {

        final WindowManager.LayoutParams attrs = getAttributes();

        //Add by Chris 20090708

        if(attrs.type == WindowManager.LayoutParams.TYPE_APPLICATION )
{

           attrs.width = 480;

           attrs.height = 320;

        }

        else{

        attrs.width = width;

        attrs.height = height;

        }

        //end

        if (mCallback != null) {

            mCallback.onWindowAttributesChanged(attrs);

        }

    }

And I modify framework/base/core/res/res/value/theme.xml

Add <item name="android:windowIsFloating">true</item> in every <style

Then almost app window can resize.
But Browser and Camera will be wrong and menu size is wrong.

Please give me some 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 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