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就能指定它的上下位置,左右也就类似的可以指定了
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就能指定它的上下位置,左右也就类似的可以指定了

浙公网安备 33010602011771号