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

Hi,

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
abc.sh and data.txt in to LOCAL_MODULE path.

include $(CLEAR_VARS)
LOCAL_SRC_FILES:= thserv.c readln.c writened.c
LOCAL_CFLAGS += -D_LINUX
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
LOCAL_STATIC_LIBRARIES := libcutils libc
LOCAL_SHARED_LIBRARIES := libutils
LOCAL_MODULE := server
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)
LOCAL_UNSTRIPPED_PATH := $(TARGET_OUT_EXECUTABLES_UNSTRIPPED)
LOCAL_LDLIBS := -lpthread -lrt

Thanks

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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

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

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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