w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Scrollable and Clickable textview inside gridview android

Try this:

Properties of your TextView in your layout's xml file:

android:maxLines = "INTEGER"

android:scrollbars = "vertical"

Then use:

yourTextView.setMovementMethod(new ScrollingMovementMethod())

in your code.

It will work fine..

or else you can put the TextView into the ScrollView:

<ScrollView android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:layout_weight="1">
    <TextView android:id="@+id/TextView01"
android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Testin testin testing "></TextView>
</ScrollView>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.