I want show image in ImageView, but don't show it. I use XML code and Java code but don't show. show in simulator but in real devices don't show.
tested on LG G2, HTC One X, Samsung Galaxy S3.
my xml code :
<ImageView
android:id="@+id/sms_dialog_header"
android:layout_width="fill_parent"
android:layout_height="150dp"
android:layout_alignParentTop="true"
android:scaleType="centerCrop"
android:background="@drawable/show_sms_header" />
my java code :
Dialog_Header_Img = (ImageView) findViewById(R.id.sms_dialog_header);
Dialog_Header_Img.setImageResource(R.drawable.show_sms_header);
I used to be separated from each.
Please tell me the solution