Linked Questions
92 questions linked to/from Making TextView scrollable on Android
0 votes
2 answers
1k views
Dynamically setting maxLine property of textview
I am looking for a way to set the maxLine property of a textview based on the length of my string. For example, i have a string in the following format: String test = "This is a \n \n test" The above ...
0 votes
1 answer
904 views
Custom Scrollbar for TextView in Android
How can one achieve scrollbar like one below for TextView? So what i mean is, the scrollbar style is custom and is visible when the content does not fit into TextView. Thank you all in advance.
-1 votes
2 answers
681 views
Why cant i scroll the textview inside my fragment?
I already tried to use the solution rom here Rigth now it's a ScrollView. Neither of these possibilities will let me Scroll the text. It minSDK is Version 8. It still has to be able to run on ...
0 votes
2 answers
876 views
ScrollView containing a TextView disappears in ConstraintLayout when height is set to 0dp
I am trying to create a custom alertDialog with a ConstraintLayout, containing a title, scrollview with a textview, and a button at the bottom. I want the scrollview to grow/shrink dynamically and ...
1 vote
1 answer
854 views
Android: Adding Vertical Scroll to TextView
I'm trying to set up a TextView vertical scroll in the XML layout, it barely works, The scroll seems to move when I hardly swipe down the vertical bar, I mostly get to scroll down the layout instead ...
1 vote
3 answers
602 views
Textview with lines scroll
I have a textview, and when there is more than 2 line of text in it, the second line becomes 1st line, with a line free below it, and the first line should not be visible. is this possible with ...
0 votes
1 answer
351 views
how to make the scrolling of TextView looks more natural in android?
This the default way to make TextView scrollable:- TextView txtView = (TextView)findViewById(R.id.book_detail); txtView.setMovementMethod(new ScrollingMovementMethod()); txtView.setText("...
0 votes
3 answers
407 views
scroll view programmatically
I would need to create a scrollview directly from Java code so I wrote this code (which I use in an AlertDialog). TextView myTextView = new TextView(context); myTextView.setText("Very long text" + ...
0 votes
2 answers
371 views
make a TextView scrollable + Bug in Android
I have already read this post: Making TextView scrollable on Android without success. My app looks like this: Where the black space is a TextView. It is declared at the xml like this: <TextView ...
0 votes
4 answers
107 views
how to add scrollbars to a textview in android
I have defined the function showMeTable() for getting data from sqlite database in DbHelper.java class. Then i call it from WeekDbShow.java class. After getting the table in the form of string , i am ...
-1 votes
2 answers
549 views
Android TextView not scrolling [C#]
Why my TextView field doesn't scroll with finger? Have I missed something? <TextView android:text="Hi! Type help for more info" android:textAppearance="?android:attr/...
1 vote
2 answers
539 views
Textview Gravity not working inside scrollview
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layouts" android:layout_width="match_parent" android:...
1 vote
2 answers
284 views
Scroll is not showing the entire content
I am splitting the screen with 2 linear layouts containing text view and this may contain large number of lines hence using scrolls but the first we lines are scrapped off and cannot view it. ...
2 votes
1 answer
471 views
ListView not scrollable
My ListView does not receive onScroll events in case it is short and does not fill the whole screen, which is strange, because I have set fill_parent as height. My layout: <?xml version="1.0" ...
2 votes
0 answers
448 views
Can't scroll a textView with a maxLines attribute on Android
I'd like to make a TextView scrollable when the maxLines is >= to 10. I tried this code: <LinearLayout android:id="@+id/powers_layout" android:layout_width="match_parent" ...