整体效果图:
一、思路:自定义标题栏,只要把系统自带的标题栏去掉(做法:requestWindowFeature(Window.FEATURE_NO_TITLE);),自己再写两个布局块(LinearLayout 布局)充当顶部和底部的标题栏即可,中间使用ScrollView,这种方法有点投机取巧,但是的确很实用。
UI的布局类如下:
public class QQZoneUI extends ActionBarActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.setContentView(R.layout.qq_zone);
}
}
xml布局如下:
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_h