android - Darken background around fragments layout -


i've 2 fragments.

fragmentbackground - fragment takes size of screen

fragmentforeground - smaller fragment on top of fragmentbackground

i'm way dim around fragmentforeground layout, meanwhile supporting api 4.0+. looking clean solution here. open every suggestion well.

try using android:elivation="8dp" might put fragment up. wont support older versions of android. suggest creating fragmentbackground , fragmentbackground . in way requirement can achieved.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -