have an option menu. while clicking the option menu an edittext & a button is amde visible in a screen but i need to show a phone dialler there. Im showing that dialler by clicking the edit text.. but my requirement is to show that dialler with that edittext & button by clicking the option menu itself. My code is given below: TableRow tableRow; EditText phoneNumber; Button callNow; @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case First: try { tableRow.setVisibility(View.VISIBLE); phoneNumber.setVisibility(View.VISIBLE); phoneNumber.setVisibility(View.FOCUS_UP); phoneNumber.setKeyListener(DialerKeyListener.getInstance()); callNow.setVisibility(View.VISIBLE); phoneNumber.setWidth(200); callNow.setWidth(100); break; } catch (Exception e) { // TODO: handle exception } break; } }
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en