OOPS..
Here is the code
This all happens from a button pressed on the 2nd layout (items.xml)
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);
}
};
On May 16, 3:50 pm, Justin Anderson <[email protected]> wrote:
> > Any Ideas?
>
> Maybe, if you share your layout code with us...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://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]
> > 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