android-scrollbar

How can I change the width/thickness of a scrollbar?

自古美人都是妖i 提交于 2019-11-26 20:32:26
问题 Currently this is my scrollbar.xml file: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <gradient android:angle="45" android:centerColor="@color/blue" android:endColor="@color/blue" android:startColor="@color/blue" /> <corners android:radius="8dp" /> </shape> And this is my ScrollView: <ScrollView android:id="@+id/scrollView1" android:scrollbarThumbVertical="@drawable/scrollbar" android:layout_width="match_parent" android:layout

Disable scrolling in webview?

别等时光非礼了梦想. 提交于 2019-11-26 00:30:22
Until now I have been an iPhone developer only and now I have decided to give Android a whirl. Something I haven't been able to figure out on Android is how to programmatically prevent scrolling in a WebView ? Something similar to iPhones prevention of the onTouchMove event would be great! peceps Here is my code for disabling all scrolling in webview: // disable scroll on touch webview.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return (event.getAction() == MotionEvent.ACTION_MOVE); } }); To only hide the scrollbars, but not