package com.commonsware.android.imf.two;
import android.app.Activity;
import android.os.Bundle;
public class IMEDemo2 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: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:imeOptions="actionSend"
/>
android:text="Signed decimal number:"
/>
android:inputType="number|numberSigned|numberDecimal"
android:imeOptions="actionDone"
/>
android:text="Date:"
/>
android:inputType="date"
/>
android:text="Multi-line text:"
/>
android:inputType="text|textMultiLine|textAutoCorrect"
android:minLines="3"
android:gravity="top"
/>