package com.commonsware.android.imf.one;
import android.app.Activity;
import android.os.Bundle;
public class IMEDemo1 extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
//res\layout\main.xml
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1"
>
android:text="No special rules:"
/>
/>
android:text="Email address:"
/>
android:inputType="text|textEmailAddress"
/>
android:text="Signed decimal number:"
/>
android:inputType="number|numberSigned|numberDecimal"
/>
android:text="Date:"
/>
android:inputType="date"
/>
android:text="Multi-line text:"
/>
android:inputType="text|textMultiLine|textAutoCorrect"
android:minLines="3"
android:gravity="top"
/>