ImageView changes the position when image load to it?



I'm downloading image from server but the problem is when i successfully download and set the image within my async task. LIKE



protected void onPostExecute(Bitmap result) {

bmImage.setImageBitmap(result);
dialog.dismiss();
}


It will change the imageView position suddenly :P


xml is here



<AbsoluteLayout
android:id="@+id/AbsoluteLayout2"
android:layout_width="250dp"
android:layout_height="match_parent"
android:background="#DEECF9" >

<ImageView
android:id="@+id/profile"
android:layout_width="134dip"
android:layout_height="wrap_content"
android:layout_x="59dp"
android:layout_y="71dp"
android:src="@drawable/profileimg" />
</AbsoluteLayout>

Tiada ulasan:

Catat Ulasan