android - What is the difference between gravity="center" and textAlignment="center" and centralHorizontal="true" -


i have question layout arrangement in android. seems me gravity="center" , textalignment="center" same thing? how centralhorizontal="true" ?

for practicality purposes, textalignment , gravity equivalent, except textalignment member of view class , gravity member of textview class. layout_centerhorizontal defines how view should placed in relation it's parent view, while former 2 deal how view should lay out it's subviews.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -