Move drop shadow of TabWidget along with it to bottom of the screen
-
06-07-2021 - |
Question
I have an app that uses fragments and tabs. I have moved the tabs to the bottom of screen, but the tabwidget's shadow still at the top of the screen(. How to show it above the tabwidget. My main xml is same as in the following question, but slightly modified as suggested in its answer..
Solution 2
I solved this using
android:foreground="@drawable/drop_shadow"
android:foregroundGravity="bottom|fill_horizontal"
on the FrameLayout
tag.
OTHER TIPS
Try to setup this style to fragments or activities in the tabs:
<style
name="NoWindowContentOverlay">
<item
name="android:windowContentOverlay">@null</item>
</style>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow