example:
<?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"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="TextView WITHOUT inputType\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:text="TextView WITHOUT textMultiLine\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text|textMultiLine"
android:text="TextView WITH textMultiLine\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="EditText WITHOUT inputType\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:text="EditText WITHOUT textMultiLine\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text|textMultiLine"
android:text="EditText WITH textMultiLine\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button WITHOUT inputType\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:text="Button WITHOUT textMultiLine\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text|textMultiLine"
android:text="Button WITH textMultiLine\n - default text: abcdefghijklmnopqrstuvwxyz! "
/>
</LinearLayout>
Related Post:
- android:singleLine
No comments:
Post a Comment