1. Download our Official Android App: Forums for Android!

Apps Making a button look pressed in

Discussion in 'Android Development' started by kisa72, Sep 27, 2011.

  1. kisa72

    kisa72 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Sep 18, 2011

    Sep 18, 2011
    2
    0
    5
    Hi,

    I'm using Eclipse to write the android application.

    I've added some standard buttons from the Form Widgets tab and successfully got them opening new windows which display additional buttons.

    I would like the button that was pressed, to change appearance and continue to look pressed in after it is selected.

    Any help in being able to do they would be great.

    Thanks,

    Markus
     

    Advertisement

  2. iwanabeguru

    iwanabeguru Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Sep 24, 2011

    Sep 24, 2011
    3
    0
    5
  3. Laxidasical

    Laxidasical Newbie
    Rank:
    None
    Points:
    16
    Posts:
    25
    Joined:
    Aug 25, 2011

    Aug 25, 2011
    25
    3
    16
    Chicago
    You can create different buttons in Photoshop for different "states" (ie. pressed, focused, etc), then specify which image should be used for which state in an xml file. Here is how to do it: ImageButton | Android Developers
     

Share This Page

Loading...