Resizable widget android

前端 未结 2 1325
旧巷少年郎
旧巷少年郎 2021-02-15 11:13

Is there any way we can make a resizable widget in android according to the space in home screen? For example if the home screen empty, i can make my large widget. If there oth

2条回答
  •  鱼传尺愫
    2021-02-15 12:04

    With Android 3.1 this is now possible Add the following to your appwidget-provide element android:resizeMode="horizontal|vertical"

    Example from the official documentation:

     
    

提交回复
热议问题