1
我已經在不同的設備上跟蹤堆大小和分配的內存。我想知道爲什麼這些價值觀之間存在差異,您對此有何看法?感謝您的幫助。導致堆大小和分配內存之間存在差異的因素是什麼?
我layout.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/square1" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/hello_world"
android:textSize="@dimen/txt_size" />
</FrameLayout>
</RelativeLayout>
設備
I9100
P6700
N7000