[android-beginners] Listener on custom dialog

2009-12-22 Thread roly
Hi, I have created a custom (alert)dialog based on a layout, which contains some buttons. I'd like to listen these buttons, so I tried doing a simple OnclickListener but it crashes... I think this happens since at start he tries to listen a element which is not displayed. No ? Is there anybody

Re: [android-beginners] Listener on custom dialog

2009-12-22 Thread ryan alford
Here is how I do it... ___ AlertDialog.Builder builder; Context mContext = getApplicationContext(); LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.widget_icon_selection,