1

I am facing this strange problem. In my app, I have a tabbar at the bottom of the screen. In this screen I have some EditTexts and Buttons.

Now my problem is that if the app is running on small devices, when tabbar somehow shows up overlapping the buttons, then a white shadow shows up over the tabbar(as shown in the attached image). This shadow doesnot show up if the tabbar is not overlapping any widget.

I just want to know if this is natural behaviour of android or I can get rid of it. Please help. Thanks in advance.

fulltab

Yogesh Somani
  • 2,624
  • 3
  • 21
  • 34

2 Answers2

8

This show is not show by Tabs, it is default fade effect of scroll view, You can remove this by set it to none. For this you have to add this property in scroll view

android:fadingEdge="none" 

under the Scrollview tag of this screen.

Jaiprakash Soni
  • 4,100
  • 5
  • 36
  • 67
  • it works. Actually it was a problem of scrollview , not tabview. So I defined this attribute in scrollview of this page. +1 from me. – Yogesh Somani Aug 11 '12 at 11:42
2

Fading edge color is controlled by the android:cacheColorHint attribute.

Try below code -

ScrollView android:cacheColorHint="#ff000000" android:background="#ffffffff" />

instead of these colors you can give your desired color. Try below links -

  1. ScrollView Problem

  2. ScrollView FadingEdge

Community
  • 1
  • 1
Praveenkumar
  • 24,084
  • 23
  • 95
  • 173