How to Make a TextView Scrollable in Android Java

To make a TextView scrollable in android java, Add these lines in your project   In XML : android:maxLines=”1000″ android:scrollbars = “vertical”   In Java Activity : YourTextview.setMovementMethod(new ScrollingMovementMethod());   Explanation android:maxLines=”1000″ android:scrollbars = “vertical” Here, android:maxLines=”1000″ sets the number of lines that…

Set Custom Font for TextView Android App Java

This tutorial will help you to learn to set a custom font or your favourite ttf font for a TextView in android java Create a TextView in your activity_main.xml layout <TextView android:textColor=”@color/colorPrimaryDark” android:id=”@+id/text3″ android:layout_width=”350sp” android:gravity=”center” android:layout_height=”wrap_content” android:textSize=”50sp” android:text=”Hello this is a…

Posts navigation