• <tfoot id='z45QO'></tfoot>
    • <bdo id='z45QO'></bdo><ul id='z45QO'></ul>

    1. <small id='z45QO'></small><noframes id='z45QO'>

    2. <i id='z45QO'><tr id='z45QO'><dt id='z45QO'><q id='z45QO'><span id='z45QO'><b id='z45QO'><form id='z45QO'><ins id='z45QO'></ins><ul id='z45QO'></ul><sub id='z45QO'></sub></form><legend id='z45QO'></legend><bdo id='z45QO'><pre id='z45QO'><center id='z45QO'></center></pre></bdo></b><th id='z45QO'></th></span></q></dt></tr></i><div id='z45QO'><tfoot id='z45QO'></tfoot><dl id='z45QO'><fieldset id='z45QO'></fieldset></dl></div>
      <legend id='z45QO'><style id='z45QO'><dir id='z45QO'><q id='z45QO'></q></dir></style></legend>

        Android Widget:预览图像大小

        时间:2023-09-09

            <bdo id='SKwOM'></bdo><ul id='SKwOM'></ul>
            <legend id='SKwOM'><style id='SKwOM'><dir id='SKwOM'><q id='SKwOM'></q></dir></style></legend>
          • <i id='SKwOM'><tr id='SKwOM'><dt id='SKwOM'><q id='SKwOM'><span id='SKwOM'><b id='SKwOM'><form id='SKwOM'><ins id='SKwOM'></ins><ul id='SKwOM'></ul><sub id='SKwOM'></sub></form><legend id='SKwOM'></legend><bdo id='SKwOM'><pre id='SKwOM'><center id='SKwOM'></center></pre></bdo></b><th id='SKwOM'></th></span></q></dt></tr></i><div id='SKwOM'><tfoot id='SKwOM'></tfoot><dl id='SKwOM'><fieldset id='SKwOM'></fieldset></dl></div>
            <tfoot id='SKwOM'></tfoot>
            • <small id='SKwOM'></small><noframes id='SKwOM'>

                    <tbody id='SKwOM'></tbody>
                  本文介绍了Android Widget:预览图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 Android 中有一个小部件,我正在为其设置预览图像.不幸的是,我在确定小部件的合适尺寸时遇到了问题:如果它太大,它会在框架底部被裁剪.

                  I have a widget in Android for which I am setting a previewImage. Unfortunately, I am having issues figuring the good size for the widget: if it's too big, it gets cropped at the bottom of the frame.

                  我一直在尝试找到推荐的尺寸,甚至更好的是显示预览图像的帧的像素尺寸,但我在文档中找不到.

                  I have been trying to find the recommended size, or even better, the pixel dimensions of this frame where the preview image gets displayed, but I cannot find it in the documentation.

                  请问有人知道在哪里可以找到这些信息吗?

                  Does anyone please know where to look for that information please?

                  谢谢.

                  推荐答案

                  模拟器有一个应用程序可以创建大小合适的预览:

                  The emulator has an application for creating a preview with just the right size:

                  http://developer.android.com/guide/topics/appwidgets/index.html#preview

                  我的建议是使用该应用程序获取小部件的 previewImage,然后查看大小.

                  My suggestion would be to grab a previewImage of your widget with that application and then look at the size.

                  这篇关于Android Widget:预览图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:为什么小部件在重新启动后不起作用? 下一篇:Android O:我们可以做一个时钟小部件吗?

                  相关文章

                      <bdo id='5z6XY'></bdo><ul id='5z6XY'></ul>

                  1. <small id='5z6XY'></small><noframes id='5z6XY'>

                      <i id='5z6XY'><tr id='5z6XY'><dt id='5z6XY'><q id='5z6XY'><span id='5z6XY'><b id='5z6XY'><form id='5z6XY'><ins id='5z6XY'></ins><ul id='5z6XY'></ul><sub id='5z6XY'></sub></form><legend id='5z6XY'></legend><bdo id='5z6XY'><pre id='5z6XY'><center id='5z6XY'></center></pre></bdo></b><th id='5z6XY'></th></span></q></dt></tr></i><div id='5z6XY'><tfoot id='5z6XY'></tfoot><dl id='5z6XY'><fieldset id='5z6XY'></fieldset></dl></div>
                      <legend id='5z6XY'><style id='5z6XY'><dir id='5z6XY'><q id='5z6XY'></q></dir></style></legend>
                      <tfoot id='5z6XY'></tfoot>