Has anyone tried to write his own implementation of ViewGroup with some TextViews in it?
I have a problem, that TextViews in such an implementation don\'t r
This is not the wrong behavior you are just trying to set the wrong property.
With TextView.setGravity(Gravity.CENTER) you are setting the gravity of the TextView's content.
TextView.setGravity(Gravity.CENTER)
What you are looking for is the layout_gravity.