Click here to Skip to main content
15,868,340 members
Articles / Mobile Apps / Android

Android - customize EditText like a page in textbook.

Rate me:
Please Sign up or sign in to vote.
4.95/5 (16 votes)
9 Jan 2013CPOL 34.4K   1.1K   74  
Customize EditText in Android with has lines inside.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >

    <vn.com.enclave.android.demo.LineEditText
        android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="22dp"
        android:ems="10"
        android:text="@string/main_content"
        android:textAppearance="?android:attr/textAppearanceMedium" />

</RelativeLayout>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions