Closed SingleCycleKing closed 10 years ago
I'm slightly confused as to the need of this, since when you click an item it dismisses it, could you elaborate it a bit more so I can understand exactly what you want it to do, cheers.
@lewisjdeane I think he is talking about this:
@SingleCycleKing With the latest version of the L-Dialog you can do something like here:
StateListDrawable selector = new StateListDrawable();
selector.addState(new int[]{android.R.attr.state_pressed}, new ColorDrawable(R.color.color1));
selector.addState(new int[]{-android.R.attr.state_pressed}, new ColorDrawable(R.color.color2));
// The important part:
dialog.getListView().setSelector(selector);
Oh right I see, a selector, I'll add that later, cheers.
Thank you, it's really a good work.
Could you please tell me how to change the L-ListDialgs selected color?