Actually I have added :

android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

to my manifest so that there wouldn't be a upper and lower bar...
I did set the minimum height and width to 480 and 320 pixels...

Setting the android:layout="bottom" on the used RealtiveLayout (with
the Image as background) still will result into a hideous version of
the original Image...

To try the ImageView option of Robert how do I create a ImageView and
afterwards paint other stuf on top of that ?
I mean I create a RelativeLayout, place an imageView in it, but
afterwards I'd like to place another RelativeLayout (with several
items) on top of that, how is this done ?

On 29 jan, 23:21, Robert Nekic <robertne...@gmail.com> wrote:
> So does the gradient look any better?
>
> On Jan 29, 5:05 pm, skink <psk...@gmail.com> wrote:
>
> > On Jan 29, 9:18 pm, Robert Nekic <robertne...@gmail.com> wrote:
>
> > > In that case, instead of using the image as the RelativeLayout's
> > > background, have you tried placing it into your RelativeLayout via an
> > > ImageView with height/width set to wrap_content and the scaleType to
> > > centerCrop?  You might lose some pixels on the edges but it should at
> > > least display the image without altering its proportions and possibly
> > > introducing scaling oddities.
>
> > or better yet, set image to RelativeLayout's background and simply set
> > android:gravity = "bottom", this will prevent scaling
>
> > pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to