Infle seu XML
Um exemplo que retirei do site http://mgmblog.com/2011/03/23/inflating-a-view-for-a-alertdialog/
private void openAboutDialog() { AlertDialog.Builder dialog = new AlertDialog.Builder( this ); dialog.setView( getLayoutInflater().inflate( R.layout.about_layout, null ) ); dialog.setTitle( getString( R.string.about_jumpy_title ) ); dialog.setPositiveButton( getString( R.string.done ), null ); dialog.show(); }
0 comentários:
Postar um comentário