Android Question Shade below the panels

brelto85

Active Member
Licensed User
Longtime User
How to add the shade of a panels like the image attached?

I tried to do this with this solution:

B4X:
Dim ivShadow As ImageView
ivShadow.Initialize("")
ivShadow.Background = LoadDrawable("code_lock_bottom")
Panel1.AddView(ivShadow, 0, 0, 100%x, 5dip)

That method isn't the best solution because with different smartphone's resolutions, the position of code_lock_bottom must be changed to view it

I tried also with a 9-patch method but i don't understand how it works and if permits to add the shade under the panel

There's a standard method that follow the official guidelines?
 

Attachments

  • Screenshot_2014-10-08-22-43-47.png
    Screenshot_2014-10-08-22-43-47.png
    112.9 KB · Views: 407
Top