Skip to main content

Posts

Showing posts with the label Single Line

Android Basic Tutorial : Single Line Scrolling Text in any View

This example explains how to write single line horizontal scrolling text in android Algorithm:Create a new project by File-> New -> Android Project name it SingleLineScrollingText. 2.)Write following into main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     >
<EditText      android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="View without singleLine\n - default text: Hello, I am Android developer "     />
<EditText      android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:singleLine="true"     android:text="View WITH singleLine\n - default text: Hello, I am Android developer "     />
<…