【发布时间】:2018-08-17 02:15:12
【问题描述】:
我有一个 ImageButton,当我对我的应用程序进行一些测试时,我发现我无法在装有 Android N 设备的小米 Note 4 中显示tooltipText。但它在我的带有 Android O 的三星 S8 中显示得非常好,知道为什么会发生这种情况以及如何缓解这种情况吗?最小可复现代码真的很简单,只需在android studio中创建一个基本的android项目并将默认的HelloWorld Textview替换为
<ImageButton
android:layout_width="36dp"
android:layout_height="36dp"
android:tooltipText="Show tooltip"
android:src="@mipmap/ic_launcher"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
我认为必须有某种方法可以使它工作,因为自动生成的工具栏显然有工具提示。所以我必须有一些东西让它在小米设备上工作。
【问题讨论】:
标签: android tooltip imagebutton