Hi all!

I'm still in the process of discovering the ins and outs of the
Android SDK, so bear with me here. I'm working with Webviews, and
though I have scourged the web for and answer to my question, I can't
find it.

I'm looking to lock the horizontal scroll of my webview (if possible
locked to the max on the left, if not the default should do), and
implement horizontal fling gestures to switch webviews. From what I've
seen I need to override the standard onTouch methods of the webview,
but how can I implement a horizontal gesture and leave the vertical
scroll on my webview?

For now the code looks like this:

//CODE//

public class HelloWebEDT extends Activity {
    /** Called when the activity is first created. */

        WebView myWebView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        myWebView = (WebView) findViewById(R.id.webView1);
        String source =
get_page(0);                                               //get_page
is my method that retrieves the source of the page to use in the
webview

                myWebView.loadData(source,"text/html", "utf-8");

//CODE//(couldn't find a code tag)

Relativey simple...

Now I need it to scroll vertically, and fling to get_page(1) when
flung right to left, etc... Any Ideas? Example code greatly
appreciated. Thanx!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to