do you mean the keyboard is popped up, but the activity is not pushed
aside? right?
i DID meet this issue. seems it's bug of the imf, or windowmanager.

On May 7, 3:15 pm, Yossi <[email protected]> wrote:
> Hi Dianne,
>
> Did you find anything wrong with my code?
>
> Thanks,
> Yossi
>
> On May 6, 11:00 am, Yossi <[email protected]> wrote:
>
> > this is the layout
> > <?xml version="1.0" encoding="utf-8"?>
>
> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> > android"
> >         android:id="@+android:id/widget_frame"
> >         android:orientation="vertical"
> >     android:padding="10px"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent">
> >                 <TextView
> >                 android:text="@string/settings_text_email"
> >                 android:layout_width="wrap_content"
> >                         android:layout_height="wrap_content"
> >                         android:textSize="24px"
> >                 android:textColor="#ffffff"
> >                 android:gravity="left"
> >                 android:paddingLeft="3dip"/>
> >                 <TextView
> >                 android:text="@string/settings_text_email_info"
> >                 android:layout_width="wrap_content"
> >                         android:layout_height="wrap_content"
> >                 android:textColor="#ffffff"
> >                         android:textSize="14px"
> >                 android:gravity="left"
> >                 android:paddingLeft="3dip"/>
> >                 <LinearLayout
> >                     android:orientation="horizontal"
> >                     android:gravity="left|top"
> >                     android:layout_width="fill_parent"
> >                         android:layout_height="fill_parent">
> >                         <EditText
> >                         android:id="@+id/settings_edit_email"
> >                         android:text=""
> >                         android:layout_width="248px"
> >                                 android:layout_height="wrap_content"
> >                         android:textColor="#262626"
> >                                 android:textSize="16px"
> >                         android:gravity="left|center"/>
> >                <Button android:id="@+id/settings_button_save"
> >                             android:text="@string/settings_button_save"
> >                             android:layout_width="52px"
> >                             android:layout_height="44px"
> >                         android:gravity="left|center"/>
> >                 </LinearLayout>
>
> > </LinearLayout>
>
> > and this is the code
>
> > import android.content.Context;
> > import android.preference.Preference;
> > import android.util.AttributeSet;
> > import android.view.View;
> > import android.widget.Button;
> > import android.widget.EditText;
>
> > public class EditEmailPreference extends Preference implements
> > View.OnClickListener
> > {
> >         private EditText _emailEditText;
>
> >         public EditEmailPreference(Context context, AttributeSet attrs)
> >         {
> >                 super(context, attrs);
> >                 setLayoutResource(R.layout.settings_email);
> >         }
>
> >         @Override
> >         protected void onBindView(View view)
> >         {
> >                 super.onBindView(view);
>
> >                 _emailEditText = (EditText) view.findViewById
> > (R.id.settings_edit_email);
> >                 _emailEditText.setText(getPersistedString(""));
> >                 Button saveButton = (Button) view.findViewById
> > (R.id.settings_button_save);
> >                 saveButton.setOnClickListener(this);
> >         }
>
> >         @Override
> >         public void onClick(View v)
> >         {
> >                 persistString(_emailEditText.getText().toString());
> >         }
>
> > }
>
> > Thanks for your help.
>
> > On May 6, 10:50 am, Dianne Hackborn <[email protected]> wrote:
>
> > > You'll need to supply code that demonstrates the problem.  Given that this
> > > behavior is nothing like the standard behavior of EditText anywhere else 
> > > in
> > > the system, here must be something in your code instigating it.
>
> > > On Wed, May 6, 2009 at 12:24 AM, Yossi <[email protected]> wrote:
>
> > > > 1. User clicks on the EditText
> > > > 2.Softkeyboardpops-up and EditText loses the focus. Any typing on
> > > > thekeyboarddoes nothing
> > > > 3. User touches again the EditText to get focus
> > > > 4. Now, any click on thekeyboardshows the character for a second in
> > > > the EditText but then it disappears.
>
> > > > Thanks.
>
> > > > On May 6, 10:11 am, Dianne Hackborn <[email protected]> wrote:
> > > > > IMEs do not take input focus, so I don't really understand what you 
> > > > > are
> > > > > describing.  What behavior are you seeing that is different than how 
> > > > > the
> > > > IME
> > > > > behaves in other parts of the UI?
>
> > > > > On Tue, May 5, 2009 at 11:47 PM, Yossi <[email protected]> wrote:
>
> > > > > > Anyone has this issue or am I doing something wrong?
>
> > > > > > On May 2, 11:51 am, Yossi <[email protected]> wrote:
> > > > > > > Hi,
>
> > > > > > > I implemented a custom preference screen on which I have an 
> > > > > > > EditText
> > > > > > > control. The problem I have is when the user clicks on the 
> > > > > > > EditText
> > > > > > > control to enter data, thesoftkeyboardpops-up and the EditText
> > > > > > > loses the focus which makes it impossible to enter data.
> > > > > > > What do I do wrong?
>
> > > > > > > Thanks,
> > > > > > > Yossi
>
> > > > > --
> > > > > Dianne Hackborn
> > > > > Android framework engineer
> > > > > [email protected]
>
> > > > > Note: please don't send private questions to me, as I don't have time 
> > > > > to
> > > > > provide private support, and so won't reply to such e-mails.  All such
> > > > > questions should be posted on public forums, where I and others can 
> > > > > see
> > > > and
> > > > > answer them.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > [email protected]
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see 
> > > and
> > > answer them.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to