OOPs

 

This all happens from a button on the 2nd layout

 

       private View.OnClickListener onAddItem = new View.OnClickListener() {

              public void onClick(View v) {

                     

                                  

                     setContentView(R.layout.additem);

                     

                     //final AlertDialog dialog = null;

                     

                     

                     EditText txtItem = (EditText)
findViewById(R.id.txtgroceryItem);

                  InputMethodManager inputMgr =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);

                  inputMgr.showSoftInput(txtItem,  0);

              

               Button btnDone = (Button) findViewById(R.id.btnDone);

               btnDone.setOnClickListener(onDone);

               

               Button btnAddItem = (Button) findViewById(R.id.btnAddGItem);

               btnAddItem.setOnClickListener(onAddTheItem);

               

 

              }

       };

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Justin Anderson
Sent: Wednesday, May 16, 2012 3:51 PM
To: [email protected]
Subject: Re: [android-developers] Help

 

Any Ideas?

Maybe, if you share your layout code with us...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Wed, May 16, 2012 at 2:26 PM, Mark <[email protected]> wrote:

Hello Everyone.

 

I seem to have this problem in a app I am creating. I have 3 different
layouts . The 3rd layout has a EditText but when I click on it The soft
keyboard will not show up. But on the Main layout it will 

Any Ideas?

 

Thanks

  Mark

 

-- 
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]
<mailto:android-developers%[email protected]> 
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

 

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

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