How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

My question is about Android development using java. In my

Customer Question

My question is about Android development using java.
In my first activity the users can scale and transform an image inside of an imageview. The image bitmap is saved into an instance class. I then make a second activity and I want the image to keep the same scale and transformation as in the first activity. I have tried using getImageMatrix() and saving it to the instance, then using setImageMatrix() in the second class, but the image always scales to 1 and centers in the new imageview instead of scaling and transforming in the way the first image was setup as.
Submitted: 1 month ago.
Category: Programming
Customer: replied 1 month ago.
I have the xml layout for the ImageView set to android:scaletype="matrix"
Expert:  George Sibiya replied 1 month ago.

Hi,

Welcome to JustAnswer and thank you for utilizing our services.

I can assist in troubleshooting. Though I might be able to deliver an answer earlier, I can guarantee the latest to be Tuesday.

Would that be fine?

Regards,

G

Customer: replied 1 month ago.
that would be fine.
Expert:  George Sibiya replied 1 month ago.

ok

Expert:  George Sibiya replied 1 month ago.

Hi,

Sorry I am two days late.

In which directory is your image? Is it in drawable or mipmap?

How do the <ImageView /> xml segments look like in both activities?

Regards,

G

Customer: replied 1 month ago.
It's ok. I thought that this question might take a little time.My image is downloaded from a storage url online and then saved to a singleton class. I'm not sure what a mipmap is.Here is the xml for the first activity:<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/picture"
android:scaleType="matrix"
android:src="@drawable/dotted"
android:cropToPadding="false"
android:adjustViewBounds="true"
/>And the second activity:<ImageView
android:layout_height="200dp"
app:srcCompat="@drawable/cancel_button_big"
android:id="@+id/tattoo"
android:layout_width="200dp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:scaleType="matrix"
/>
Customer: replied 1 month ago.
I actually chose the wrong xml in the previous post. The xml code for the image is actuallty:<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/cancel_button_big"
android:id="@+id/picToEdit"
android:scaleType="matrix"/>
Customer: replied 1 month ago.
that's for the second activity.
Expert:  George Sibiya replied 1 month ago.

ok thanks

Customer: replied 1 month ago.
I just got an email saying that my question was answered. I'm confused since the last post I see from you is 'ok thanks'. Was there another post that I'm not seeing?
Expert:  George Sibiya replied 30 days ago.

Hi,

No it not answered please accept my humble apologies.

I had a hectic week I'll finish it in the morning.

Regards,

G

Expert:  George Sibiya replied 24 days ago.

Hi,

Can you share your project here http://wikisend.com/ or dropbox.com I can diagnose it quicker that way

Regards,

G