Android image displaying differently despite same pixel density -
i have 2 different png's both 48px x 48px. however, when assign both imageview, 1 of images displays larger other. code have follows:
switch (id) { case 0: iconid = r.drawable.ic_launcher; break; case 1: iconid = r.drawable.gmail; break; }
the above image displayed in following imageview:
<imageview android:id="@+id/statusicon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true"/>
the launcher icon 1.5x bigger gmail in listview though exact same pixel size. going on?
sometimes android try scale pictures on fly. try putting them in raw res folder , if system trying scale things should fix it.
Comments
Post a Comment