android-scrollbar

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

为君一笑 提交于 2019-11-30 23:14:39
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 because i want to set text in it run time and added this in table view as a row.. EditText editText = new

Remove scroll bar track from ScrollView in Android

大憨熊 提交于 2019-11-30 10:36:53
问题 My Android app has a main WebView (HTML loaded from a local resource) which I want to use the entire width of the screen and be able to make (vertically) scrollable. So I've wrapped the WebView in a ScrollView in my layout XML, but no matter what I do I can't seem to be able to remove the scroll bar track from the right side of the scroll view. Even worse, I can't seem to be able to change the background colour of the scroll bar track. The track takes up about 10dp's or so, which is creating

How to make the `scrollbar` appear on the left side?

安稳与你 提交于 2019-11-30 07:58:02
In an Android ListView , how can I make the scrollbar appear on the left side? example: mView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_LEFT); You can move the scrollbar position to the left for any View using View.SCROLLBAR_POSITION_LEFT . As the other two answers have mentioned, one possibility is using View.setVerticalScrollbarPosition() with SCROLLBAR_POSITION_LEFT . However, one giant caveat is that this requires API level 11+, which at time of writing accounts for fewer than 10% of Android installations. For most applications, that's not acceptable. One possibility that comes

Remove scroll bar track from ScrollView in Android

北城以北 提交于 2019-11-29 21:09:41
My Android app has a main WebView (HTML loaded from a local resource) which I want to use the entire width of the screen and be able to make (vertically) scrollable. So I've wrapped the WebView in a ScrollView in my layout XML, but no matter what I do I can't seem to be able to remove the scroll bar track from the right side of the scroll view. Even worse, I can't seem to be able to change the background colour of the scroll bar track. The track takes up about 10dp's or so, which is creating problems for the HTML in the WebView. I'd like the scroll bar to appear on top of the web view (iPhone

Scrollbar color in RecyclerView

此生再无相见时 提交于 2019-11-29 20:58:45
How can I change the color of my scrollbar in a recyclerView? I have the scrollbar but I want to change its color. My recyclerView is like this: <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/recyclerView" android:layout_below="@id/my_toolbar" android:layout_above="@+id/progressBar" android:scrollbars="vertical" /> You can do this by including following line of code in your Recyclerview android:scrollbarThumbVertical="@drawable/yoursdrawablefile The drawable file in my case is: <?xml version="1.0" encoding="utf

How to make the `scrollbar` appear on the left side?

南笙酒味 提交于 2019-11-29 11:17:33
问题 In an Android ListView , how can I make the scrollbar appear on the left side? 回答1: example: mView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_LEFT); 回答2: You can move the scrollbar position to the left for any View using View.SCROLLBAR_POSITION_LEFT. 回答3: As the other two answers have mentioned, one possibility is using View.setVerticalScrollbarPosition() with SCROLLBAR_POSITION_LEFT. However, one giant caveat is that this requires API level 11+, which at time of writing accounts

Scrollbar color in RecyclerView

坚强是说给别人听的谎言 提交于 2019-11-28 17:10:20
问题 How can I change the color of my scrollbar in a recyclerView? I have the scrollbar but I want to change its color. My recyclerView is like this: <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/recyclerView" android:layout_below="@id/my_toolbar" android:layout_above="@+id/progressBar" android:scrollbars="vertical" /> 回答1: You can do this by including following line of code in your Recyclerview android

Scrollbar not showing in RecyclerView

杀马特。学长 韩版系。学妹 提交于 2019-11-28 08:02:16
I've got a RecyclerView and would like to have scrollbar showing, when it covers more than one page. I get no scrollbar at all. Any idea? My layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <CheckBox android:id="@+id/cl_only_empty" android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="5dp" android:text="@string/cl_only_empty" android:textColor="@color/white" /> <android.support.v7.widget.RecyclerView android:id="@+id

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

陌路散爱 提交于 2019-11-27 21:52:19
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_height="match_parent" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android

Scrollbar not showing in RecyclerView

蹲街弑〆低调 提交于 2019-11-27 05:44:08
问题 I've got a RecyclerView and would like to have scrollbar showing, when it covers more than one page. I get no scrollbar at all. Any idea? My layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <CheckBox android:id="@+id/cl_only_empty" android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="5dp" android:text="@string/cl_only