2012/5/5 Bas Verhoog <[email protected]> > Hi, > > Yeah, the statements were your idea. However, the person before you > (Spiral123) suggested splitting the Activities ;). > > Thanks for the tip on the Eclipse hightlight, too! > > One question, though: How is it tricky to get a Dialog with Listview to > display correctly? >
It has to do with theming and custom item layouts, if you use them. Prior to 3.0, dialogs use a dark background, so if you create your own item layouts, you'll want to use light text color. Starting with 3.0, dialogs use the same background style (dark / light) as their parent activity, so unconditionally using light text color doesn't work. If you use something like AlertDialog.Builder / setMultiChoiceItems / setItems, where the item layouts are provided for you, then you can ignore the above. Ahem, it appears that's what you're in fact using. Ok, ignore what I said, it doesn't apply in this case. Sorry. > Also, would my idea of making the Dialog a separate Activity be doable? > The logic behind the list might need to be implemented differently, depending on where your data "lives". A dialog can access its parent activity data, but activities are generally independent of one another. Other than that, sure, why not? > I think it might be easier to do that, rather than make it a sort of > semi-Activity within another Activity. > ... except I don't think changing a dialog into an activity will, by itself, help you solve compile problems faster. > > I've already got a ListView, though not a Fragment in place in another > tab. I'll take a look at that when this gets fixed (my idea was to edit the > new problems into the first post as everything was solved, so as to save > space and make it a sort of challenge, I guess :P). > > > Regards, > > Bas > > P.S.: Do you have any relevant Java tutorials (preferably not *too* long) > to help me out with this? > Sorry, no... I started using Java a fairly long time ago, and don't really remember what my learning materials were back then... Perhaps it was the whatever docs were provided by Microsoft with their Java SDK... Hardly useful to mention that now... :) -- K -- 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

