Ah, it was this! We were using ActionBarSherlock.

public class SettingsActivity extends FragmentActivity {
        @Override
        protected void onCreate(Bundle savedInstanceState) {
                setTheme(R.style.Theme_Sherlock);


I then used Theme_Sherlock_Light and the checkbox appeared correctly.
Though now the ActionBar is white... which looks odd since we were
used to a black-bar ActionBar.

Would there be a way to separately theme the ActionBar or checkbox? I
can't get at git.kernel.org and even if I could, Honeycomb source
isn't out.


On Sep 20, 6:47 pm, Mark Murphy <[email protected]> wrote:
> If SettingsActivity inherits from PreferenceActivity, there might be
> something else needed there. I seem to recall there being issues with
> theming the Honeycomb PreferenceActivity, though I do not remember
> what those issues might be off the top o' my head.
>
>
>
>
>
>
>
>
>
> On Mon, Sep 19, 2011 at 11:10 PM, albnok <[email protected]> wrote:
> > I tried this, but for some reason the theme only applies to
> > LoginActivity but not SettingsActivity:
>
> >        <application android:icon="@drawable/icon" android:label="@string/
> > app_name"
> >                android:theme="@android:style/Theme.Holo.Light" 
> > android:name="Test">
> >                <activity android:name=".LoginActivity"
> > android:screenOrientation="portrait">
> >                        <intent-filter>
> >                                <action 
> > android:name="android.intent.action.MAIN" />
> >                                <category 
> > android:name="android.intent.category.LAUNCHER" />
> >                        </intent-filter>
> >                </activity>
> >                <activity android:name=".SettingsActivity"
> > android:screenOrientation="portrait" android:theme="@android:style/
> > Theme.Holo.Light">
> >                        <intent-filter>
> >                                <action 
> > android:name="android.intent.action.VIEW" />
> >                        </intent-filter>
> >                </activity>
> >        </application>
>
> > (Part before and after <application> tags removed.)
>
> > On Sep 19, 6:33 pm, Mark Murphy <[email protected]> wrote:
> >> Theme.Holo.Light is usually applied to an <activity> in the manifest,
> >> to affect the whole activity, not an individual CheckBox in a layout.
>
> >> On Mon, Sep 19, 2011 at 12:47 AM, albnok <[email protected]> wrote:
> >> > I am putting a CheckBox against a white background. It looks fine on
> >> > pre-Honeycomb devices but on Honeycomb, it seems that the graphic has
> >> > partial transparency and is white, so when the checkbox is unticked,
> >> > you cannot see it.
>
> >> > I tried using the Theme.Holo.Light style as follows:
>
> >> > <CheckBox android:text="" style="@android:style/Theme.Holo.Light"
> >> > android:layout_marginLeft="5dip" android:id="@+id/checkBoxWifiOnly"
> >> > android:layout_width="wrap_content"
> >> > android:layout_height="wrap_content" />
>
> >> > This appears to have no effect. Am I typing the syntax wrongly?
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to [email protected]
> >> > To unsubscribe from this group, send email to
> >> > [email protected]
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Mark Murphy (a Commons 
> >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> >> Android 3.1 Programming Books:http://commonsware.com/books
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC:http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to