Reputation: 82938
How can I remove that line from my tab view? Or can I set height or colors for it?
Upvotes: 0
Views: 2776
Reputation: 21909
try defining a new theme with windowContentOverlay set to null:
<style name="MyTheme" parent="@android:style/Theme>
<item name="android:windowContentOverlay">@null</item>
</style>
And then apply this theme to your activity in your manifest (or you can apply it to the element to apply it application-wide):
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.stylingandroid.VectorDrawables" android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="10" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MainActivity"
android:label="@string/app_name" android:theme="@style/MyTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
That should remove the shadow.
If you want to change the colour of it set android:cacheColorHint in the style.
Upvotes: 7