Nobody has any idea?

On Thu, Dec 16, 2010 at 12:35, Paulo Nonaka <[email protected]> wrote:

> Hi!
>
> Does anyone know why the onClick of an EditText is not triggered when the
> focus is on another EditText?
> To simulate my problem edt2 click, then click on edt1. You will not see
> "fired " in the log output.
>
> public class ProblemClickTextEdit extends Activity {
>
> @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         EditText edt2 = (EditText) findViewById(R.id.edt2);
>         edt2.requestFocus();
>
>         EditText edt1 = (EditText) findViewById(R.id.edt1);
>         edt1.setOnClickListener(new OnClickListener() {
>  @Override
> public void onClick(View view) {
> Log.i("ProblemClickTextEdit", "fired");
>  }
> });
>     }
> }
>
> Thanks
>

-- 
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