View background question

by WoodManEXP » Thu, 24 Sep 2009 09:58:17 GMT

Sponsored Links
 Does anyone know how to set a View background drawable that clips the
image rather than scaling it (sort of like using a ImageView with wrap-
content instead of fill_parent).

I like to set background drawable and not have it distorted (looks
especially bad when going to landscape orientation).

Is there a way to do this?

Alternatively, is there a way to set an ImageView as a View
background and overlay the other views on it?

Thank you!


View background question

by WoodManEXP » Thu, 24 Sep 2009 11:01:17 GMT

 I figured this out.

Use RelativeLayout and you can overlay views. This makes it possible
to use an ImageView to create a nonscaling backgroud.

Hope this helps someone out there!


Sponsored Links

Other Threads

1. How to write Shell script in Android makefile


I need to copy one shell script file and data file in to
LOCAL_MODULE_PATH. The executable file is able to generated at
specified folder. I need to copy script files and data files (present
in same folder where *.C files) after successful compile of *.C files.

My make file for executable is given below. Please help how to copy and data.txt in to LOCAL_MODULE path.

include $(CLEAR_VARS)
LOCAL_SRC_FILES:= thserv.c readln.c writened.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../include
LOCAL_STATIC_LIBRARIES := libcutils libc
LOCAL_MODULE := server
LOCAL_LDLIBS := -lpthread -lrt



2. simple hello world program on Android emulator

Hi all,

Just i want to run simple hello world program that was written in C
language on Android emulator.

I want run it by copying on SDcard (image) and want to test at

how can I do this?
plz can any one help regarding this? I want  step  by step procedure..
because i am new to android.

Best regards,


3. Set System Time

4. Application Crashes when Orientation changes - Very Urgent plz

5. Mirink @ long wiken

6. Dev-phone more expensive than expected for international customers

7. Moving a program from one computer to another