提问人:Ex0_ _DuS 提问时间:6/30/2023 更新时间:6/30/2023 访问量:60
如何检查 ImageView 的 Alpha 以及什么是“不存在可说话的文本”?
How can I check Alpha of the ImageView And What is "No speakable text present"?
问:
我想检查 ImageView 的 alpha 是否有另一个函数,但我现在不能这样做,Android Studio 也输出错误“不存在可说话的文本”(对于 @+id/zxcursed)。
我尝试为ImageView设置大小或其他东西,但没有用
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:id="@+id/anime"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/animememe" />
<ImageView
android:id="@+id/zxcursed"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:onClick="animation"
app:srcCompat="@drawable/zxcursed" />
</RelativeLayout>
答: 暂无答案
评论