How to set the width and height of an ImageView programmically?

by Dianne Hackborn » Mon, 27 Apr 2009 11:16:16 GMT


Sponsored Links
 The standard way you force the size of a view is with
android:layout_width="999dp" and android:layout_height="999dp".






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Delete Emails programatically

Hi,
I am trying to delete all the mails of an existing account .Is that possible?
When i tried to delete the accounts on the phone , i saw that i  could
delete all the accounts programatically except the primary account
which i know that can be deleted only on phone reset.(In program i get
false return value for the AccountManagerCallback)So it seems
impossible to delete mails as the mails are loaded as and when needed
for the account.
So following are my questions.
1 ) Can we delete all the mails on the device of the non primary Email account?
2)Is there any way to delete the primary mail account programatically ?

Thanks ,
Alok.

-- 

2. Adding external Jar

Hi all,

I am trying to add an external static java library in to
frameworks/base/service but i getting compilation errors

this is how i am trying to add

my library is foo.jar and it is places in external/foo


LOCAL_PATH:= $(call my-dir)

# the library
# ============================================================
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
            $(call all-subdir-java-files) \
            com/android/server/EventLogTags.logtags \
            com/android/server/am/EventLogTags.logtags

LOCAL_JAVA_LIBRARIES := android.policy
LOCAL_STATIC_JAVA_LIBRARIES := foo

LOCAL_MODULE:= services

LOCAL_NO_EMMA_INSTRUMENT := true
LOCAL_NO_EMMA_COMPILE := true

include $(BUILD_JAVA_LIBRARY)
include $(BUILD_DROIDDOC)



and this is my external/foo/Android.mk

LOCAL_PATH := $(my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := foo
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := foo.jar
# This will install the file in /system/framework
LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := foo:foo.jar
include $(BUILD_MULTI_PREBUILT)

can you guys please help me out

LG

-- 

3. Android Licensing

4. WebView Issue

5. Tutorial: Architecting a Push Email App on Android

6. Current track being played in stock music player

7. Emailing Google Publisher Support