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. How to get Lat and Long about one bus line from google maps

Hi, guys.
I want to know the Lat and Long by a busline, or know the busline by the Lat
and Long.
Thank you!

Believing is Everything.


2. How can I disable an item of ListView?

When I have a list view and there are 3 items which can choose by
user, I wanna show only choosable items to user because of some
reason. but I could not find any method in ListView or ArrayAdapter
class. Is there a solution?

protected void onCreate(Bundle savedInstanceState) {
    menuList = new ArrayList<String>();

    ArrayAdapter<String> adapter;
    adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, menuList);

    ListView list = (ListView)findViewById(;

for example, I wanna disable the second 'banana' item.
There are what I want exactly on the emulator, in sub menus of
Settings. and I looked at source of settings.
Almost settings menu are implemented with "PreferenceActivity"
It doesn't look like my code. In there, I found a method like below.
  Preference btSettings = findPreference(KEY_BT_SETTINGS);

I think that's what I want. but Is there a solution based on my code?
rather than using PreferenceActivity.


3. Which device should i buy to test My Custom Input Method Application

4. Can we install Android SDK on windows 7 if yes then how ?

5. Return value of 0 from getWallpaperDesiredMinimumWidth/Height()

6. Google OMX Core

7. how to upgrade android emulator to Android2.2 froyo.