Move drop shadow of TabWidget along with it to bottom of the screen
-
06-07-2021 - |
Вопрос
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..
Решение 2
I solved this using
android:foreground="@drawable/drop_shadow"
android:foregroundGravity="bottom|fill_horizontal"
on the FrameLayout
tag.
Другие советы
Try to setup this style to fragments or activities in the tabs:
<style
name="NoWindowContentOverlay">
<item
name="android:windowContentOverlay">@null</item>
</style>
Не связан с StackOverflow