well, i am not using any margin or padding. please take a look on my code below:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:id="@+id/Image" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> ImageView imageView; imageView=(ImageView)findViewById(R.id.Image); InputStream is; try { is = getAssets().open("cover.png"); Bitmap bm = BitmapFactory.decodeStream(is); imageView.setImageBitmap(bm); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } /////////////// image size is 480*320 On May 21, 2:42 pm, Robert Green <rbgrn....@gmail.com> wrote: > It depends on your layout. probably the parent container is what is > too small somehow. If you try putting that image into an empty frame > or absolute layout, it'll probably fill it right up. > > Check for margins, padding or other things that could make the > container in the layout be smaller than you want. Posting the layout > would probably be helpful for us. > > Thanks > > On May 21, 5:20 am, zeeshan <genx...@gmail.com> wrote: > > > Hi Experts, > > > i am trying to display 480*320 image in fill_parent width and height > > but it doesn't fit on full screen. > > image seems a bit smaller in width. > > > do i need to change resolution or something else, please advise > > > thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---