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. Performance problems (CPU usage up to 100%)

Hello,
i have a 5" touchdisplay with a at91g45 400 Mhz CPU and a ported
Froyo.

If I touch the screen, the system_server uses up to 100% of CPU.
Also the touchinputs are very slow.
I can see this by opening the browser and type one letter at the touch-
keyboard.
It needs a very long time to put the typed letter in the textfiled and
even after waiting some time I can see the popped up letter at the
screen.

has anybody an idea what could be the reason for this problem?
I am grateful for any hint.

Thanks

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

2. appslib problems

I just found out (by accident) that one of my apps on Appslib is not
listed anymore for the a5it since it (supposedly) failed some test.
This is quite annoying since a) I didn't get any kind of notification
that the status of my app had changed (it worked perfectly well before
- same apk, same device), b) the app works fine on my own a5it, c)
there is not the slightest bit of information on *why* exactly it
failed.
Anyways, I sent a complaint to Appslib admins. And if you have apps on
Appslib, go and check whether it's still available for all devices...

-- 

3. can magic sys rq be used in android kernel debugging ?

4. problems with Typeface

5. Layouts for tablets in the wild - Dell Streak for example

6. Clarification about ImageView.setImageURI()

7. One more question about different size screens - how to use extra space? How to code for it?