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. get result when Settings.ACTION_SECURITY_SETTINGS closes, in app widget

Hi,

is there a way it can be triggered when
Settings.ACTION_SECURITY_SETTINGS closes?

I am working on a widget that opens ACTION_SECURITY_SETTINGS activity,
should wait for it to close, then execute some code.

Actually it starts the activity and execute codes while the activity
is still opened, doesn't wait for it to close.

Please help!

Mariux

-- 

2. convert JPEG sketch of my apartment to google map

Hi,

Is there any mechanisms to convert JPEG or PDF sketch of my apartment to
Google Maps so that i can do location markings on that Map using Google map
API's exposed by android .

Basically my intention is to mark the specific locations on JPEG image of my
apartment in android phone

Thanks in advance

regrds
Sal

-- 

3. What is the Android Sequence of Startup

4. Receiving ACTION_MEDIA_* broadcast events

5. pagging bro teguh aditya (bandung)

6. Porting Andoid Apps

7. Connecting a DSLR camera via PTP on Android