I am writing an Android application and I have a box within a box on my UI. I changed the color of the backgrounds so the user can differentiate them. However, I want to know if I can have a raise edge or different color “edge” of a layout.
+_____________+
| _______ |
| | | |
| | | |
| |______| |
+_____________+
Imagine that horrible box is the screen, and the outer box has a background of white and the inner box’s background is blue. Can I can make the ‘edges’ a different color and appear raised so the user can see a a better distinction between the boxes?
The best way to do this is to create your own background drawable for your View. I invite you to read about 9-patches and how to create them.