这样界面的布局xml怎样写?
界面很简单,只有4个按键,从上到下排列,位于屏幕中部(顶端和底端间距相同),按键的间距相同,左右居中,这样界面的布局xml怎样写?
------解决方案--------------------很简单啊
外面一层RelativeLayout
里面一层LinearLayout
在LinearLayout里面放四个按钮
LinearLayout
android:layout_centerInParent="true" //设置LinearLayout在RelativeLayout居中
android:orientation="vertical" //设置四个按钮竖向摆放