做这个页面,主要涉及到Android的基本布局。 RelativeLayout中控件与控件之间的均分,主要有水平和垂直,在水平中必须要将各个控件填满整个布局(android:layout_width="match_parent"android:layout_height="match_parent" )然后再垂直均分( android:layout_weight="1" ),在这样就可以实现控件将整个布局填满。在TableLayout的配置 android:stretchColumns="*" 是选中下面所有控件,然后逐一将控件分布,分布大小android:layout_width="1dip",button还要填满整个控件, android:layout_height="fill_parent"这样就实现了整个控件填满布局。
转载于:https://my.oschina.net/xpawn/blog/734344