android


Android disable fading edge


I would like to completely disable the fading edge at the top of my activity/application. My view consists of only a WebView that is created programmatically:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
webView = new WebView(this);
webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
webView.setVerticalFadingEdgeEnabled(false);
webView.setFadingEdgeLength(0);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setSupportZoom(false);
webView.loadUrl("...");
setContentView(webView);
}
A fading edge is still visible at the top (between the WebView and the Android Status Bar), even though I've disabled the fading edge, and set the Length to 0. If I add some black space between the top of the WebView and the Android Status Bar, the fading edge is no longer visible.
So it seems like the fading edge is added by the activity itself, not the WebView. Any ideas why this is happening? Is there something I've missed, or some other way of removing the fading edge?
Similar: How to get rid of top fading edge in android full screen mode?
Here is what you want to do, it's a bit backwards to set the theme to fullscreen and then turn of the fullscreen flag, but it works :)
requestWindowFeature(Window.FEATURE_NO_TITLE);
setTheme(android.R.style.Theme_NoTitleBar_Fullscreen);
getWindow().setFlags(0, WindowManager.LayoutParams.FLAG_FULLSCREEN);

Related Links

Viewing database of an app stored/installed on the device in android
Run Broadcast at specific time
Arraylist display selected listview to textview
Call service method from activity
How to change programmatically the primary color in Android L
Implementing PreferenceFragment?
3G mobile data carrier shows different website
Facebook android app permission: ask for get user profile picture
send data from ArrayList<String> to String Array (Android)
How to store multiple checkbox values in android?
On button click animation must be triggered
how to define default view in android after creating new class?
No Activity found to handle Intent` { act=android.intent.action.DELETE dat=sms:
Android - Set the space between GridLayout children programatically?
Custom Slider in Infowindow not getting focus - Android Google Map v2
Not Getting Push noitification using parse.com in android

Categories

HOME
go
kentico
google-cloud-platform
porting
gdb
merge
css3
gpu
powerpoint
numbers
toolbox
obfuscation
saml-2.0
static-site
web-hosting
pyqt4
webix
extjs4.2
sendgrid-api-v3
categorical-data
pega
atlassian
parameter-passing
dynamic-sql
google-container-registry
sencha-touch
poedit
rubymotion
r-mice
angular-routing
mongoid6
beautifier
jquery-multiselect
shared
android-maps
spotipy
tpm
quantlib
google-cast
scrollview
autodesk-designautomation
pop3
raft
reactivekit
tex
xdocreport
modernizr
password-protection
apns-php
verifiable-c
linq-to-objects
news
parser-generator
flask-login
phpdbg
openresty
textsum
robomongo
chai-as-promised
tinymce-3
datamaps
edit
objectscript
jboss-tools
rasterize
toolkit
vacuum
sha512
avahi
java-security
qtwebengine
grouping-sets
teaspoon
entry-point
rmysql
reflector
lnk
android-framework
fpdi
menubar
hibernate-entitymanager
robotlegs
qi4j
pstack
monotouch.dialog
wcf-configuration
hibernateexception
box2d-iphone
convention
matlab-load
u2netdk
pylucene
msr
cac
jqueryform
folding
glui
web-application-project
dojo-dnd
wysiwym
ifilter

Resources

Encrypt Message