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. LocationManager causes application to crash

Hi,

We're working on Location based services with android emulator. But
the issue is that the application crashes when any of the following
statements executes:-

Location location = locationManager.getLastKnownLocation(locationManag
er.getBestProvider(CRITERIA, true));

 
OR

Location location = locationManager.getLastKnownLocation("gps");

We have also defined permissions in manifest.xml as follows:-

<uses-permission android:name="android.permission.ACCESS_GPS"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION"/>

PS: we are also spoofing coordinates using ddms. Google map works
fine, but our application keeps crashing.

Any inputs please. Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~

2. Tools to Profile Surface Flinger and Audio Flinger !

Hi All,

           Which tools can be used in Android to profile surface flinger and
Audio Flinger components ?

 Do we have Oprofile or something else ?

Rgds,
Gulshan

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

3. Serialization problem with objects, when using ksoap

4. I guess Paid Apps come when Cubcake Comes?

5. Properly rendering huge cursors of data in listview?

6. Style Guide for Android application development

7. how to completely wipe out the application data