android - 如何处理亚马逊kindle fire上的底部工具栏

发布于 2025-01-07 00:36:48 字数 251 浏览 0 评论 0原文

似乎在亚马逊kindle上有一个底部工具栏占用了我的全屏应用程序的空间,但应用程序本身认为它占据了整个屏幕,因此它的一部分总是被工具栏隐藏。

其他平板电脑上的情况有所不同,所以我猜问题出在亚马逊 Kindle Fire 上。

有办法解决这个问题吗?

也许有一个亚马逊kindle fire的sdk可以帮助解决这个问题?也许有一种方法可以将工具栏放在上面,或者使应用程序采用它可以的实际大小,不包括工具栏占用的空间?

请帮忙。

it seems that on amazon kindle there is a bottom toolbar that takes space of my full screen app , yet the app itself thinks that it got the entire screen , so a part of it is always hidden by the toolbar.

the situation is different on other tablets , so i guess the problem is with amazon kindle fire.

is there a way to overcome this issue?

maybe there is an sdk for amazon kindle fire which can help with it? maybe a way to put the toolbar on the upper side , or make the app take the real size that it can, excluding the space taken by the toolbar?

please help .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

难以启齿的温柔 2025-01-14 00:36:48

也许亚马逊 Kindle Fire 有一个 sdk 可以提供帮助吗?

现在还不行。

也许可以将工具栏放在上方

不,抱歉。

让应用程序采用它可以达到的实际大小,不包括工具栏占用的空间?

欢迎您为此编写代码。正如Kindle Fire 文档所述:

*注:设备会预留20px显示软键菜单,纵向有效分辨率为1004px高x 600px宽,横向有效分辨率为580px高x 1024px宽。

因此,对于 Fire,请确保您使用的空间不超过上述尺寸,并且您不必担心酒吧。

maybe there is an sdk for amazon kindle fire which can help with it?

Not at this time.

maybe a way to put the toolbar on the upper side

No, sorry.

make the app take the real size that it can, excluding the space taken by the toolbar?

You are welcome to write the code for that. As the Kindle Fire documentation states:

*Note: The device will reserve 20px to display a soft key menu, making the effective portrait resolution 1004px high x 600px wide and the effective landscape resolution 580px high x 1024px wide.

So, for the Fire, make sure you are not using any more space than the above dimensions, and you will not have to worry about the bar.

情愿 2025-01-14 00:36:48

对于那些正在寻找获取侧菜单宽度的方法的人,您可以尝试下面对我有用的代码:

    Display display = getWindowManager().getDefaultDisplay();
    Point size = new Point();
    display.getRealSize(size);
    int screen_width = size.x;

    int kindleSideMenuWidth = (int) (screen_width * 0.06171875);

0.06171875 是比率,我用旧的“Paint”计算得出。
希望有帮助。

For those who are looking for a way to get the SIDE menu width, you can try the code below which worked for me:

    Display display = getWindowManager().getDefaultDisplay();
    Point size = new Point();
    display.getRealSize(size);
    int screen_width = size.x;

    int kindleSideMenuWidth = (int) (screen_width * 0.06171875);

0.06171875 is the ratio, which i`v calculated with the good old "Paint".
Hopes it helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文