Android Programming: The Big Nerd Ranch Guide, Third Edition
by Bill Phillips, Chris Stewart, Kristin Marsicano
Challenge: Button Themes
After completing the 9-patch image update, you may notice that something is not quite right with the background of your buttons. Behind the dog ear, you can see something that looks like a shadow. You may also notice that this shadow only shows up on Android version 21 and newer.
That shadow is part of the elevation that all buttons receive by default on Lollipop and newer (21+). As you press the button, it appears to come closer to your finger (you will learn more about this in Chapter 35).
With this dog-eared image, you want to remove that shadow. Use your new theme spelunking skills to determine how that shadow is applied. Is there some other type of button style that you can use as your parent for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access