Ex0_ _DuS
Ex0_ _DuS

Reputation: 21

How can I check Alpha of the ImageView And What is "No speakable text present"?

I wanna check the alpha of the ImageView for another function but I don't now i can do this, also Android Studio outputs an error "No speakable text present"(for @+id/zxcursed).

I tried to set size or something for ImageView but it didn't work

<?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>

Upvotes: 2

Views: 235

Answers (0)

Related Questions