Textview Gravity
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 respect the gravity proper
Solution 1:
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.
What you are looking for is the layout_gravity
.
Post a Comment for "Textview Gravity"