example:
![android.text.InputType android.text.InputType](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0TuKhnIy4UJMMufNmo1uIpZlJbHo_VCeI0PIYrVhUBcNCBJygb5r5_my37smP3vcHwWN00TeYL7vpuCtCOwtlVkj5p93F7Xpbi7yFc8tKimJZjenL51XhDF_A_R3ST85F8VhiRu5eIN_O/s400/TextInutType.png)
<?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