0

I am developing Photo Frame application. I got an issue in this case: If I have only one imageview, I can drag, rotate, zoom. But when I insert second imageview overlap first imageview, then I drag imageview1 again, it is very lag with logcat: The application may be doing too much work on its main thread.

This is my xml layout:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView
   android:id="@+id/imageView"
   android:layout_width="fill_parent"
   android:layout_height="250dp"
   android:scaleType="matrix"
   android:src="@drawable/dog" />

<ImageView
    android:id="@+id/imageView2"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scaleType="fitXY"
    android:src="@drawable/image_frame" />

[SOLVED] I found the problem. That is in the image_frame. It's dimension is too large. After I reduced the dimension, it's ok. Thank all

kidsoul
  • 69
  • 1
  • 10

0 Answers0