Is there anyway of change the TypeFace of the ListView inside an
AlertDialog? I tried this in my code but does not work (no error,
simply count returns 0):
protected Dialog onCreateDialog(int id) {
        AlertDialog.Builder builder;
        final AlertDialog alertDialog;
...
            alertDialog = builder.create();
            // List View
            lv = (ListView)alertDialog.getListView();
            int count = lv.getChildCount();
            for (int i=0; i<count; i++) {
                tv = (TextView)lv.getChildAt(i);
                tv.setTypeface(tf);
            }
...
Thanks

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