0

My intension is to have a button on screen that when clicked will move a bunch of imagebuttons from one "football formation" to another one.

Something along the lines of this.

Formation 1

To this Formation 2

With each position representing a different imageButton, however when i try something like

player2.setLeft(200);

It crashes the program.

If this View isn't possible for this what would be the best way to go about it, or am i best off using a different layout entirely?

5
  • When it crashes, what exception is thrown? Also, what versions of Android are you targeting? Aug 7, 2013 at 14:00
  • have you tried removing the view, updating the layout params then readding it?
    – rcbevans
    Aug 7, 2013 at 14:02
  • From 11 (3.0 i believe) upwards. I run the program and it just says "programName has crashed unexpectedly." Aug 7, 2013 at 14:02
  • Can you provide the stack trace? Aug 7, 2013 at 14:14
  • Sorry still quite new to this, where do i find the stack trace? Aug 7, 2013 at 14:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.