android-scrollbar

Overflow-x:hidden not working w/ Android (Samsung Epic) and possibly others

倖福魔咒の 提交于 2020-01-24 18:38:46
问题 I'm using CSS media queries to adjust a site's layout based on the resolution/device. I've got the layout looking nice, but I can't make the horizontal scrollbar disappear. I've also tried eliminating the ability to zoom out to no avail... any advice would be appreciated. The site is dev.javelinexperiential.com. 回答1: Know issue with all current versions of Android and iOS See: http://code.google.com/p/android/issues/detail?id=2118 http://code.google.com/p/android/issues/detail?id=2911 来源:

Overflow-x:hidden not working w/ Android (Samsung Epic) and possibly others

痴心易碎 提交于 2020-01-24 18:38:24
问题 I'm using CSS media queries to adjust a site's layout based on the resolution/device. I've got the layout looking nice, but I can't make the horizontal scrollbar disappear. I've also tried eliminating the ability to zoom out to no avail... any advice would be appreciated. The site is dev.javelinexperiential.com. 回答1: Know issue with all current versions of Android and iOS See: http://code.google.com/p/android/issues/detail?id=2118 http://code.google.com/p/android/issues/detail?id=2911 来源:

Android: change color of spinner's popup scrollbar

喜欢而已 提交于 2020-01-16 04:14:25
问题 How can I change the color of the spinner's popup scrollbar? For some reason the color of the scrollbar is currently white on a white background, it is not visible. 回答1: add android:scrollbarThumbVertical="@drawable/yourdawable //in your spinner yourdrawable.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="your color" android:endColor="your color" android:angle="45"/> <corners android:radius="6dp" /> <

How to handle the fast-scroller on Lollipop 5.1?

北城以北 提交于 2019-12-31 17:56:10
问题 Background I've made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here. The problem It seems that on Android 5.1 , the fast scroller looks very different than the previous one, and it's too close to the right, so it's hard to use it. screenshot of Android 4.4 : Here's a screenshot on Android 5 : and on Android 5.1 : What I've found I've tried to go over all of the "what's new" section of Android 5.1, and also in some related classes docs,

Android: Make multiline edittext scrollable, disable in vertical scroll view

送分小仙女□ 提交于 2019-12-19 04:09:44
问题 I am developing an application in which i am struct at a point. As according to my application requirement i created horizontal scrollview in xml and then vertical scrollview in .java as : // Vertical Scroll view in Linear layout ScrollView scrollView = new ScrollView(this); scrollView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); Then i created a table view programatically and added it in scrollview. I created multiline edit text and disable it

Disable scrolling in webview?

删除回忆录丶 提交于 2019-12-16 22:37:11
问题 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! 回答1: 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) {

Auto scroll down on textviews

蓝咒 提交于 2019-12-11 16:53:09
问题 I have 3 components on my application, 1 textview(inputType:textMultiline, scrollbar:vertical, gravity:bottom|right) at the top, 1 editview at the middle and 1 button at the bottom. When I type something on my editview and I click the button, the text written on the edit view displays on the textview. Every time i hit ok, the text displays the the bottom and what is displayed is the first three inputs. I have to scroll down the textview in able for me to see my last input. Now, I want my

smooth horizontal scrolling in webview

瘦欲@ 提交于 2019-12-10 19:22:00
问题 I have a wevbiew with a number of 'pages' (columns of text) in it, and want to be able to scroll horizontally between columns in response to Fling gestures. I can do this fine using scrollTo(), but that is rather sudden and I'd really like to be able to do a smooth transition from one 'page' to the next. The problem as I see it: you can't attach a Scroller to a WebView, and shouldn't nest a WebView in a ScrollView. Does anyone have any good ideas for implementing smooth or animated horizontal

Scrollbar on Top Side in Horizontal RecyclerView

最后都变了- 提交于 2019-12-08 20:41:59
问题 I am working on the Simple demo of Horizontal RecyclerView . I want to display scrollbar along with the recyclerview. So I have added android:scrollbars="horizontal" and android:scrollbarSize="5dp" in XML. I am able to get the Scrollbar but it is showing on the bottom. What I want to achieve is to show it on Top. I have found some questions like this but none of them are for horizontal recyclerView + top side scrollbar. Here is the code which I have tried so far: <android.support.v7.widget

How to handle the fast-scroller on Lollipop 5.1?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 01:41:18
Background I've made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here . The problem It seems that on Android 5.1 , the fast scroller looks very different than the previous one, and it's too close to the right, so it's hard to use it. screenshot of Android 4.4 : Here's a screenshot on Android 5 : and on Android 5.1 : What I've found I've tried to go over all of the "what's new" section of Android 5.1, and also in some related classes docs, but I didn't find anything special, except for " setFastScrollStyle " . However, I couldn't find any