JDNdeveloper / Off-By-One

CMPS 115 Project: Jayden Navarro, John Gemignani, Alex Gonzalez, Kevin Cheng, Josh Innis
0 stars 0 forks source link

Create custom onPressed icon for settings #21

Closed JDNdeveloper closed 9 years ago

JDNdeveloper commented 9 years ago

This allows us to show what the setting button looks like when the user clicks on. This is usually some sort of highlight or shadow behind the icon.

JDNdeveloper commented 9 years ago

After you create it, just add it to the XML code where the setting button is under the android:onpressed (something like that) tag.

KevinCCheng commented 9 years ago

The xml code needs to be changed from ImageButton to Selector http://www.mkyong.com/android/android-imagebutton-selector-example/

JDNdeveloper commented 9 years ago

It doesn't. I've worked with this before and can make it work. I'll add it tomorrow morning. On Feb 6, 2015 9:48 PM, "KevinCCheng" notifications@github.com wrote:

The xml code needs to be changed from ImageButton to Selector http://www.mkyong.com/android/android-imagebutton-selector-example/

— Reply to this email directly or view it on GitHub https://github.com/JDNdeveloper/Off-By-One/issues/21#issuecomment-73351386 .