0

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..

How to show the Tab bar in bottom, -Tab with Fragment

Community
  • 1
  • 1
Ron
  • 24,175
  • 8
  • 56
  • 97

2 Answers2

0

Try to setup this style to fragments or activities in the tabs:

    <style
        name="NoWindowContentOverlay">
    <item
        name="android:windowContentOverlay">@null</item>
    </style>
Jin35
  • 8,602
  • 3
  • 32
  • 52
  • I have already done this to hide the shadow for now.. But i need to show the shadow at the right place.. – Ron Oct 12 '12 at 06:10
  • I'm not sure if there is API for it, but you can do it manually by using special tab widget background with negative margin – Jin35 Oct 12 '12 at 06:26
0

I solved this using

android:foreground="@drawable/drop_shadow"
android:foregroundGravity="bottom|fill_horizontal" 

on the FrameLayout tag.

Ron
  • 24,175
  • 8
  • 56
  • 97