views:

30

answers:

0

I have a layout in xml that, when the user clicks a "next" button I inflate, populate with the next screen's data, and create and set the onclicklistener for an imagebutton in the new view. I then add this view to my main ViewFlipper and call showNext() on it. The view slides into place and the button is there but there are problems:

  1. The button image is a square but is transparent so the only viewable part is a circle, except when the second view gets shown you see a gray square button with a circle on top of it.

  2. The click event never fires. The gray square changes color to indicate a click (not the circular portion that is what should be seen and if it were working correctly would have its color changed) but the onClick event in the listener never executes.

This works perfectly the first time I do this procedure (inflate, create onClickListener, add to ViewFlipper- although the first time I don't call showNext obviously).

Anyone seen anything like this? It's driving me crazy