[解决]我如何通过引力将视觉工作室中的按钮居中 [英] [solved] how do i center a button in visual studio with gravity
问题描述
所以我现在正试图在视觉工作室中按一个按钮,因为我对Android开发很新,所以他正在使用Gravity选项,他将它从更改为1并且它居中整个按钮,当我这样做时,它只是改变了文本位置。
是这样的: https:// i.gyazo.com/6c3c79f5973343730b1b85e2b6c414e1.gif
我的尝试:
我试过按照指南,重播大约13次,以确保我没有做错任何事,在google上阅读Gravity选项,但没有帮助。
So I am currently trying to center a button in visual studio, im following a guide since im pretty new to android development, and he is using the Gravity option, he changes it from " " to "1" and it centers the whole button, when i do it, it just changed the text position.
like so: https://i.gyazo.com/6c3c79f5973343730b1b85e2b6c414e1.gif
What I have tried:
I've tried following the guide, replaying it about 13 times to make sure I didnt do anything wrong, reading on google about the Gravity option, but no help.
推荐答案
由作者解决,只是为了从未答复中删除。
Solved by author, just to remove from unanswered.
这篇关于[解决]我如何通过引力将视觉工作室中的按钮居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!