LeftNavBar 渗入列表视图

发布于 2024-12-19 00:55:14 字数 559 浏览 1 评论 0原文

我正在将 LeftNavBar 用于 Google TV 应用程序。由于某种原因,它渗入了右侧的内容区域。这是屏幕截图中的一部分 - 有点难以看到,但左侧的制表符分隔符渗入了右侧的内容中 - 由于分隔符是黑色的,因此在白色图标上最为明显。屏幕截图来自索尼 Google TV。我在 Logitech Revue 上看到了一些稍微不同的东西,因为 LeftNavBar 在右侧有一个背景和一个分隔符,但内容仍然渗入右侧(我不知道为什么 Sony 和 Logitech Revue 的 LeftNavBar 的外观有所不同)罗技)。不幸的是,我无法拍摄 Logitech 的快照 - 当我尝试时,DDMS 给了我一个一般性错误。

有谁知道我可能做错了什么导致这种情况?

我也找不到针对 LeftNavBar 提出问题或记录错误的地方 - 项目页面非常稀疏:

在此处输入图像描述

I am using the LeftNavBar for a Google TV app. For some reason, it bleeds into the content area on the right. Here's a piece from the screenshot - it's a little hard to see, but the tab separators on the left are bleeding into the content on the right - it's most obvious on the white icons since the separators are dark. The screenshot is from a Sony Google TV. I see something slightly different on a Logitech Revue because the LeftNavBar has a background and a separator on the right, but there too the content still bleeds into the right side (I don't know why the appearance of LeftNavBar differs between the Sony and the Logitech). Unfortunately, I couldn't take a snapshot of my the Logitech - DDMS gives me a generic error when I try.

Does anyone know what I might be doing wrong to cause this?

I also wasn't able to find a place to ask questions or log bugs against LeftNavBar - the project page is very sparse:

enter image description here

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

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

发布评论

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

评论(2

浮光之海 2024-12-26 00:55:14

请尝试将 res/lib_leftnav_bar_dimens.xml 更改为,它应该会为您修复它:

<resources>  
    <dimen name="left_nav_collapsed_width">62dip</dimen>
    <dimen name="left_nav_collapsed_apparent_width">50dip</dimen>
    <dimen name="left_nav_expanded_width">182dip</dimen>
    <dimen name="left_nav_expanded_apparent_width">182dip</dimen>
    <dimen name="left_nav_icon_size">36dip</dimen>
    <dimen name="title_bar_height">52dip</dimen>
    <dimen name="title_bar_apparent_height">52dip</dimen>
</resources>

正如 Les 之前提到的,它似乎不是一个通用修复程序,因此一旦找到最佳修复程序,我将更新该库。

Please try changing res/lib_leftnav_bar_dimens.xml to and it should fix it for you:

<resources>  
    <dimen name="left_nav_collapsed_width">62dip</dimen>
    <dimen name="left_nav_collapsed_apparent_width">50dip</dimen>
    <dimen name="left_nav_expanded_width">182dip</dimen>
    <dimen name="left_nav_expanded_apparent_width">182dip</dimen>
    <dimen name="left_nav_icon_size">36dip</dimen>
    <dimen name="title_bar_height">52dip</dimen>
    <dimen name="title_bar_apparent_height">52dip</dimen>
</resources>

As Les mentioned earlier, it doesn't seem like a universal fix, so I will update the library once I find the best fix.

哑剧 2024-12-26 00:55:14

下周应该会有更新来解决这个问题。这是一个已知的错误。您可能希望在视图中添加一些余量来解决这个问题。

我和我的一位同事交谈过,他告诉我你应该更改来源,因为这实际上取决于你的项目的长度。也许她会在这里发表评论。

There should be an update to it next week to fix this. It's a known bug. You might wish to add some margin to your view to take care of this.

I talked with one of my colleague's who told me that you should change the source as it really depends on the length of your items. Perhaps she'll comment here.

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