Put your layout in a ScrollView, so that you can scroll to the field
in question.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 12, 4:09 pm, erisa <baw...@ucdavis.edu> wrote:
> When I click on an EditText view, the virtual keyboard obscures the
> view, so I can't see my edits.  Any suggestions would be greatly
> appreciated.
>
> I am using the following layout (from the NotePad tutorial):
>
> <?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">
>
>         <LinearLayout android:orientation="horizontal"
>                 android:layout_width="fill_parent"
>                 android:layout_height="wrap_content">
>
>                 <TextView android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:text="@string/title" />
>                 <EditText android:id="@+id/title"
>                   android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:layout_weight="1"/>
>         </LinearLayout>
>
>         <TextView android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="@string/body" />
>         <EditText android:id="@+id/body" android:layout_width="fill_parent"
>                 android:layout_height="wrap_content"
>                 android:layout_weight="1"
>                 android:scrollbars="vertical" android:gravity="top"/>
>
>         <Button android:id="@+id/confirm"
>           android:text="@string/confirm"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content" />
>
> </LinearLayout>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to