Androidstudio按钮设置

<Button
android:id="@+id/optionbt"
android:layout_marginTop="370dp"
android:background="#808080"
android:textColor="#daa520"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/option"
/> 那个layout_marginTop就能指定它的上下位置,左右也就类似的可以指定了
posted @ 2022-05-13 19:41  慢漫曼蔓  阅读(476)  评论(0)    收藏  举报