Skip to content

Conversation

AbdallaBadreldin
Copy link

@AbdallaBadreldin AbdallaBadreldin commented Nov 11, 2024

Hello

the library is working well when we set setImageDrawable(Drawable) or just use src in xml. The problem happens when we use
setImageBitmap(Bitmap) || setImageURI(Uri) for newer SDKs

I figured out that when developer call setImageDrawable() the library start to updated Controller and dimention but for other functions the library doesn't update dimentions, invalidateDrawable(Drawable) is good for fixing this problem but it will create another issues, so I made a function and moved the bulk of code that happen in setImageDrawable() in it. it's in the same class (GestureImageView) once the developer calls any function to show a picture. This function will be invoked

thank you

Hello

the library is working well when we set setImageDrawable(Drawable) or just use src from xml
the problem happen when we use
setImageBitmap(Bitmap) || setImageURI(Uri) for newer SDKs

I figured out that when  developer call SetImageDrawable() the library start to updated Controller and dimention so but for other function the library doesn't update dimentions, invalidateDrawable(Drawable) is good for fixing this problem but it  will create another issues, soI mdae function that is common it's in the same Class (GestureImageView) once developer call any function to show a picture this this function is going to be invoked

thank you
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

Successfully merging this pull request may close these issues.

1 participant