CheckBox with Background attribute renders incorrectly?

by Romain Guy » Tue, 06 Oct 2009 01:32:15 GMT

Sponsored Links
 You need to add padding to your background drawable.

Romain Guy
Android framework engineer

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


Other Threads

1. APK not visible in market for HTC Tattoo Android Phone ?

The tattoo has a low density screen if I remember correctly. Your application 
would have to support low density screens explicitly for it to show up in the 



2. The method versionName() is undefined for the type PackageInfo

A few thoughts, and them my code that's producing the above error (and
I'm perplexed as to why).

1.)  I'm using API 6
2.)  I have "import;" and "import;" at the top of the java class.
3.)  I've hit "control-shift-o" in eclipse to try to get it to import
anything that might be missing.
4.)  Eclipse shows the methods avaiable on PackageInfo (and it lists
versionName as one of them) but then gives the error message "The
method versionName() is undefined for the type PackageInfo".

My question, what am I doing wrong (I've tried other variations of the
getPackageManager line where I specified META_DATA, etc.)

// Begin Code
String version = " (Development)";

try {
  PackageInfo pi = getPackageManager().getPackageInfo
("com.testdoman.testapplication", 0);
  version = pi.versionName();     // this is the line Eclipse complains
catch (PackageManager.NameNotFoundException e) {
        // eat error, for testing


3. NexusOne newbie and disappointed... here is why...

4. NexusOne newbie and disappointed... here is why...

5. AccountManager sync policy

6. Finally Hit a Wall

7. installing application silently in android