Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException px must be > 0. #2733

Open
AlexeyGodyaev opened this issue Dec 4, 2024 · 0 comments
Open

IllegalArgumentException px must be > 0. #2733

AlexeyGodyaev opened this issue Dec 4, 2024 · 0 comments

Comments

@AlexeyGodyaev
Copy link

<FrameLayout
     android:layout_width="match_parent" 
    android:layout_height="match_parent" >
    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop" />
     <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/icon"
                android:layout_width="38dp"
                android:layout_height="35.53dp"
                android:visibility="gone" />
</FrameLayout>

in onViewCreated

  binding?.background?.load(R.drawable.background) 

//delay any time

  binding?.icon?.visibility = View.VISIBLE
  binding?.icon?.load(R.drawable.icon)
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant