Romain Guy wrote: > We fixed this issue in cupcake. > > On Mon, Feb 16, 2009 at 6:21 PM, Ben Williamson<[email protected]> wrote: > >> Ben Williamson wrote: >> >>> Ben Williamson wrote: >>> >>>> I've been beating my head against the wall on this one for a minute >>>> now... did I find another bug like the list selector solid color one? >>>> >>>> When I set multichoice items for a dialog as seen below my list items >>>> have white background and white text, when I click or select an item >>>> I can see the text becomes black and the orange list selector shows >>>> as expected.... anyone know what's up? >>>> >>>> >>>> AlertDialog.Builder diag = new >>>> AlertDialog.Builder(BookmarkEditActivity.this); >>>> diag.setTitle("Select Labels"); >>>> String[] arrLabelsChar = new String[arrLabels.size()]; >>>> boolean[] arrSelectedLabels = new >>>> boolean[arrLabels.size()]; >>>> for (int i = 0; i< arrLabels.size(); i++) { >>>> arrLabelsChar[i] = arrLabels.get(i); >>>> if (hashLabels.containsKey(arrLabels.get(i))) >>>> arrSelectedLabels[i] = true; >>>> else >>>> arrSelectedLabels[i] = false; >>>> } >>>> >>>> Log.v("SoBook", "Multi Choice Items: " + >>>> arrLabelsChar[0]); >>>> Log.v("SoBook", "Selected items: " + >>>> arrSelectedLabels[0]); >>>> >>>> diag.setMultiChoiceItems(arrLabelsChar, >>>> arrSelectedLabels, null); >>>> diag.setNegativeButton("Cancel", null); >>>> diag.setPositiveButton("OK", null); >>>> diag.show(); >>>> >>> HAHAHA I did, I did see a puddy tat! Found my second bug here people>:| >>> >>> >>> Switch my activity theme to black (from white) and now my text is >>> visible. Maybe this is fixed in sdk 1.1.... I should upgrade. >>> >> My fix to anyone interested.... >> >> Make sure the activity displaying the dialog is set to a black theme >> originally (inside your manifest). Inside your activity class grab the >> window (getWindow()) and call setBackgroundDrawable.... set it to a >> color if you wish... make sure you use getResources().getDrawable(ID) or >> you will just end up trying to pass an id as a drawable. I used >> android.R.color.background_light. >> >> Oh yea, and any labels (TextViews) inside the activity will have to >> manually bet set to a darker color (as they are gray in the black theme, >> which doesn't show up well). >> >> >> Hope this helps someone! >> >> > > > > Excellent, thanks for the heads up! :)
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

