Move drop shadow of TabWidget along with it to bottom of the screen
-
06-07-2021 - |
Frage
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..
Lösung 2
I solved this using
android:foreground="@drawable/drop_shadow"
android:foregroundGravity="bottom|fill_horizontal"
on the FrameLayout
tag.
Andere Tipps
Try to setup this style to fragments or activities in the tabs:
<style
name="NoWindowContentOverlay">
<item
name="android:windowContentOverlay">@null</item>
</style>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow