I have a textview and I want it to be both scrollable and touchable. I have it set up like this:
TextView myText = (TextView)findViewById(R.id.essayFormat);
myText.setMovementMethod(new ScrollingMovementMethod());
Then I do a touch listener like this:
myText.setOnTouchListener(new OnSwipeTouchListener() {
});
Now it's swipeable but not scrollable up and down.
Some solutions I tried was putting the Textview inside a scrollview like this:
<ScrollView
android:id="@+id/content_scroll"
android:layout_width="fill_parent"
android:layout_height="70dp"
android:layout_alignParentRight="true"
android:layout_below="@+id/title"
android:fillViewport="true"
android:scrollbars="none">
<TextView
android:id="@+id/essayFormat"
android:layout_width="fill_parent"
android:layout_height="70dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/title"
android:clickable="true"
android:fontFamily="Arial"
android:maxLines="2"
android:padding="10dp"
android:scrollbars="vertical"
android:textColor="#FFFFFF"
android:textSize="16sp"
android:textStyle="bold"
/>
</ScrollView>
Any help is greatly appreciated!