I have a textView which size is 16 characters, if it exceeds 16 characters I want to make it scrollable to the user to view remaining characters. Could any one help me?
I have tried this link Making TextView scrollable on Android
But there is no result?
My TextView Layout:
<TextView
android:id="@+id/tv1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:maxLength="16"
android:scrollbars = "vertical"
android:ellipsize="end"
android:text="fdgdddhhhdhd"
/>
Your android:maxlength="16" limits the number of characters that can be placed in the TextView to 16
According to the developer site
Wrap your textview in a scrollview:
In your XML layout file:
In your Java class file: