How do I set a TextView's layout_gravity by code?
I tried with layoutparams without any good result.
new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT, Gravity.LEFT | Gravity.CENTER_VERTICAL);
After using this my text just stays where it is standardly, at the top left corner. Neither the width: FILL_PARENT or the gravity codes do anything.