Re: How to set width and height of a View in DP through code not in XML ?

by Xu Jiyong » Thu, 27 Jan 2011 14:54:32 GMT


Sponsored Links
  http://developer.android.com/guide/practices/screens_support.html 

search 'Converting dp units to pixel units' on above page.






-- 



Other Threads

1. List View + downloading image in a background thread

All your message need to tell the UI thread is that a new image is
available. You don't have to pass the image as part of the message.
Usually, the background thread would download the image and put it in
memory (in a list or map for instance) and then simply tell the UI
thread to refresh the UI. You can see such an implementation in
Photostream and Panoramio at code.google.com/p/apps-for-android






-- 
Romain Guy
www.curious-creature.org

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

2. Launch Voice Dial From Bluetooth Headset Button

We have fixed this bug - you can now trigger voice dial from
bluetooth, it will be pushed to the open source repo soon.

Nick






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

3. AW: How does a Cursor work?

4. T-mobile G-1 new Contract

5. AutoScroll issue

6. How do i turn my program into an app?

7. Orientation change detection