Android WebView inside ScrollView scrolls only scrollview

Here is the solution. Found online. I have subclassed WebView and i’m using the requestDisallowInterceptTouchEvent(true); method to allow my webview to handle the scroll event. TouchyWebView.java package com.mypackage.common.custom.android.widgets public class TouchyWebView extends WebView { public TouchyWebView(Context context) { super(context); } public TouchyWebView(Context context, AttributeSet attrs) { super(context, attrs); } public TouchyWebView(Context context, AttributeSet attrs, int … Read more

How to make a Scroll Listener for WebView in Android

Something like: public class ObservableWebView extends WebView { private OnScrollChangedCallback mOnScrollChangedCallback; public ObservableWebView(final Context context) { super(context); } public ObservableWebView(final Context context, final AttributeSet attrs) { super(context, attrs); } public ObservableWebView(final Context context, final AttributeSet attrs, final int defStyle) { super(context, attrs, defStyle); } @Override protected void onScrollChanged(final int l, final int t, final int … Read more

Change scrollbar color in Android

You can set Listview property as android:scrollbarSize=”10dp” android:scrollbarThumbVertical=”@drawable/custom_scroll_style” Here custom_scroll_style is a xml file under the drawable folder. Lets create the custom_scroll_style.xml. <?xml version=”1.0″ encoding=”utf-8″?> <shape xmlns:android=”http://schemas.android.com/apk/res/android” > <gradient android:angle=”45″ android:endColor=”#FF3401″ android:centerColor=”#ff5c33″ android:startColor=”#FF3401″ /> <corners android:radius=”8dp” /> <size android:width=”4dp”/> <padding android:left=”0.5dp” android:right=”0.5dp” /> </shape> Here I got a Orange color scrollbar. You can use images … Read more

Stop ScrollView from auto-scrolling to an EditText

After struggling with that problem for quite some time, I’ve found a solution that seems to work without being too ugly. First, make sure that whatever ViewGroup (directly) contains your EditText has descendantFocusability set to “Before Descendants,” focusable set to “true” and focusableInTouchMode set to “true.” This will not be the ScrollView itself, but the … Read more

Stop ScrollView from setting focus on EditText

This works. Not sure if it’s the best solution or not. // SCROLL VIEW HACK // BOGUS ScrollView view = (ScrollView)findViewById(R.id.scrollView); view.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS); view.setFocusable(true); view.setFocusableInTouchMode(true); view.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { v.requestFocusFromTouch(); return false; } });

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)