In this code piece i've built a dialog, a textView and put the textView inside the Dialog.
TextView progressHolder = new TextView(activity);
progressHolder.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
progressHolder.setText("la la la3");
progressHolder.setBackgroundColor(Color.TRANSPARENT);
mProgressDialog = new Dialog(activity);
mProgressDialog.getWindow().setBackgroundDrawable(new ColorDrawable(R.color.transparent));
mProgressDialog.setContentView(progressHolder);
mProgressDialog.show();
Displaying this dialog is supposed to show the words "la la la3" on screen with the activity showing behind them.
What actually happens is that most of the activity is revealed but the words described appear in a small black box that only wraps around the words width but has a big top margin.
For question sake, i'm not trying to show a textView but the bug still happens with this exact code.
Help anyone?