android-tv 相关问题

Android TV是一款正在开发运行Android操作系统的智能电视平台。它将通过在现有电视节目之上叠加用户界面来创建交互式电视体验。

Android TV 未检测到外部网络摄像头

我们正在为 Android TV 设备构建一个 Unity 应用程序,并尝试访问 Unity 内的 USB 网络摄像头。 该设备能够识别相机并在内置相机应用程序中显示其源。

回答 1 投票 0

使用 HDMI CEC 命令关闭(待机)Android 电视不适用于 Amlogic MBOX

我正在尝试使用适用于 Android 的 HDMI CEC 通过 Android 应用程序关闭我的三星电视 我使用 Amlogic MBOX 三星电视 HDMI CEC 已打开。 Amlogic MBOX HDMI CEC 也已打开。 代码片段...

回答 1 投票 0

有没有办法在 VirtualBox 中运行 Android TV?

我想尝试 Android TV 并可能为其开发一个应用程序。不过我想先看看操作系统。有没有办法将 Android TV 作为虚拟机运行,例如使用 VirtualBox?

回答 2 投票 0

Android TV 应用程序 - Google 抱怨横幅没有填满整个空间

我们正在尝试向 Google Play 商店提交仅限电视的 Android 应用程序,但电视的选择被拒绝,因为: 没有全尺寸的应用横幅 您的应用程序不包含全尺寸应用程序横幅,或者不是

回答 1 投票 0

android 电视设置焦点转换速度

我有一个电视应用程序。我在主屏幕上有很多视图。我想设置按住向下按钮时的对焦速度。正常情况下都这么快啊我想减慢焦点在视图之间的转换......

回答 1 投票 0

如何覆盖 ReactTextInputManager 中 IME_ACTION_PREVIOUS 的行为?

看一下这一行,似乎 IME_MASK_ACTION 中的所有操作都会触发提交事件。我想重写此行为以使 IME_ACTION_PREVIOUS 操作作为“后退...

回答 1 投票 0

如何根据某个标志关注一行中的特定项目?

考虑以下代码: val tvListState = RememberTvLazyListState() val coScope = RememberCoroutineScope() 柱子{ 电视懒行( 水平排列 = 排列.spacedBy(15.dp), ...

回答 1 投票 0

可以将链接发送到 Android TV / Chromecast / Samsung TV / 等,以便在本机应用程序中打开

我有一个 Android 应用程序,我希望能够使用它从 Netflix、Prime Video、HBO 等发送链接到电视(Android TV、Chromecast、Samsung TV 或可能的情况下)以在本机中播放...

回答 2 投票 0

当片段在 Android 电视上打开时,如何防止注意力集中在活动上?

我有一个播放电影的活动,并且该活动上打开了许多片段。当片段在活动上方打开时,活动可以获得焦点。 我希望该活动不再...

回答 1 投票 0

Android TV 项目关于焦点缩放

使用下面的函数,我试图扩大焦点项目的高度和宽度。我面临的问题是高度仅向底部扩展,而顶部似乎是固定的。我...

回答 1 投票 0

滚动 Android TV 时如何阻止 RecyclerView 与 TextView 重叠

我有一个 Android TV 应用程序,它在 TextView 下方有一个 RecyclerView。一切看起来都很棒,直到我单击第三个项目,导致 RecyclerView 覆盖 TextView。 我有一个 Android TV 应用程序,它在 TextView 下方有一个 RecyclerView。一切看起来都很棒,直到我单击第三个项目,导致 RecyclerView 覆盖 TextView。 <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:focusable="false" android:focusableInTouchMode="false" android:keepScreenOn="true"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:clipToPadding="false" android:clipChildren="false" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"> <TextView android:id="@+id/dateTV" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="18sp" android:layout_marginStart="@dimen/homeHorizontalMargin" android:paddingBottom="20dp" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_below="@id/dateTV" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:layout_marginHorizontal="@dimen/epgRVHorizontalMargin" android:focusable="false" android:focusableInTouchMode="false" android:descendantFocusability="afterDescendants" /> </RelativeLayout> </androidx.constraintlayout.widget.ConstraintLayout> 如何阻止 RecyclerView 与 TextView 重叠? 您的 RecyclerView 父布局具有以下属性 android:clipToPadding="false" android:clipChildren="false" 因此,当您滚动RecyclerView时,它将与布局中的其他视图重叠。 您可以将其删除。为什么在这里使用这个属性有什么具体原因要在屏幕上设计其他视图吗? 或者您有 ConstraintLayout 作为根布局,那么为什么您再次添加 RelativeLayout 并将 RecyclerView 放入此布局中。 您可以像下面这样设计您的 XML 布局 <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:focusable="false" android:focusableInTouchMode="false" android:keepScreenOn="true"> <TextView android:id="@+id/dateTV" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="@dimen/homeHorizontalMargin" android:paddingBottom="20dp" android:textSize="18sp" app:layout_constraintTop_toTopOf="parent" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="0dp" android:layout_below="@id/dateTV" android:layout_marginHorizontal="@dimen/epgRVHorizontalMargin" android:layout_marginTop="20dp" android:descendantFocusability="afterDescendants" android:focusable="false" android:focusableInTouchMode="false" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/dateTV" /> </androidx.constraintlayout.widget.ConstraintLayout>

回答 1 投票 0

我们可以在 ListRowPresenter - Leanback Android TV 中跳过特定项目的缩放动画吗

我想仅取消第一个元素的缩放动画。有什么办法可以做到吗。 我初始化 ListRowPresenter(FocusHighlight.ZOOM_FACTOR_LARGE, false) 像这样 但是缩放动画...

回答 2 投票 0

如何使用意图(Android TV)打开谷歌搜索键盘?

我想在我的 Android TV 应用程序上打开 Google 键盘搜索布局,因为它是由默认的 Android 启动器提供的。如下图所示。 单击此按钮后,它将打开页面...

回答 2 投票 0

从 Android TV 上的启动器列表中隐藏 Android 应用程序

我想从 Android TV 启动器列表中隐藏我的 Android 应用程序。 有没有办法从 Android TV 启动器列表中隐藏 Android 应用程序?我从代码中删除了活动类并删除了

回答 1 投票 0

Android TV 在 RecyclerView 之间移动焦点

我正在构建一个具有以下布局的 Android TV 应用程序: 左右两个列表都是具有垂直 LinearLayoutManager 的 RecyclerView,Header 视图是静态的。使用方向键导航

回答 3 投票 0

Android TV 深层链接

Android TV 可以使用深层链接吗? 我编写了一个简单的应用程序,并尝试从浏览器打开链接,但没有要求重定向到我的应用程序。 电视是否启用此功能?

回答 1 投票 0

EPG 布局像 androidtv livetv 应用程序

我们正在为 Android 电视应用程序开发 EPG 布局,但我们的应用程序并未完全实现 TIF 我们可以仅使用 TIF 中的 EPG 布局并将其呈现在我的应用程序上吗? 有什么想法请提出 谢谢

回答 3 投票 0

如何将焦点从 RowsSupportFragment 的行移动到下一个布局组件?

我正在使用 Android Leanback 库来创建电视应用程序。我有一个扩展 Fragment (即 RowsSupportFragment)的布局,其下方有一个按钮。所以,当我向下滚动到 lis 时...

回答 3 投票 0

如何使用 Android TV VideoSupportFragment 向 ExoPlayer 添加字幕

我有一个基于 Google Android TV 示例存储库的 Android TV 应用程序,但无法显示字幕。我的应用程序没有任何崩溃,据我所知,字幕根本没有显示......

回答 2 投票 0

Android TV 中的 Google Assistant 和应用程序操作出现问题

我使用应用程序操作中的自定义意图,执行命令后助手不会关闭,它仍然以扭曲的颤动保持打开状态,但焦点仍然在我们的应用程序上并关闭

回答 2 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.