[android-developers] Creating scalable LinearLayout Background image

2011-04-15 Thread fr3sh
Hello,

is it possible to create a LinearLayout background image that
scales ?

As for the EditText widgets, I am able to create background images
(via draw9patch tool). There, I can define which image parts can be
(horizontally/vertically) stretched and which not. So the resulting
image is highly flexible.

LinearLayout background images do scale with the height/width per
default. But if my background image contains some sort of horizontal
line on the very top, this line is vertically stretched as soon as the
height of the Layout increases. Is it somehow possible to use
draw9patch to create a scale-intelligent background image?

Thanks in advance!

-- 
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


Re: [android-developers] Creating scalable LinearLayout Background image

2011-04-15 Thread TreKing
On Thu, Apr 14, 2011 at 12:07 PM, fr3sh wassim.benhama...@gmail.com wrote:

  Is it somehow possible to use draw9patch to create a scale-intelligent
 background image?


Isn't that the point of 9-Patch?

I haven't actually used the tool, but another idea is have a nested layout
with your header or whatever that is not supposed to stretch and then the
real LinearLayout with the portion that does stretch, both within a parent
LinearLayout.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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