I\'m trying to dynamically create some CheckBoxes in one of my Android activities, but it\'s not rendering the text.
Here is my simplified code...
L
you are not setting the Layout parameters, Layout parameter says how the control will be shown
final CheckBox female = new CheckBox(this);
female.setText("Female");
female .setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1f));
attractedTo.addView(female);