Resizable Android Widget programming At Home Screen 怎么可能?

How is it possible Resizable Android Widget programming At Home Screen?

点击并按住小部件,然后用户可以在主屏幕上调整小部件的大小

android:resizeMode="horizontal|vertical"

The resizeMode attribute specifies the rules by which a widget can be resized. You use this attribute to make homescreen widgets resizeable—horizontally, vertically, or on both axes. Users touch-hold a widget to show its resize handles, then drag the horizontal and/or vertical handles to change the size on the layout grid. Values for the resizeMode attribute include "horizontal", "vertical", and "none". To declare a widget as resizeable horizontally and vertically, supply the value "horizontal|vertical". Introduced in Android 3.1.

https://developer.android.com/guide/topics/appwidgets/index.html

您可以在此处找到有关小部件和调整大小的更多信息。