摘要: ButtonBar的方式写底部button,试了试,看起来外观貌似比Tab好看,不过恐怕没有Tab管理Activity方便吧,毕竟一个Tab就是一个Activity,但是这样用Button的话,却并不如此,所以这样的涉及可能虽然好看点,但是管理起来却是相当麻烦。那么暂且把对activity的管理放在一边,只看界面的设计吧。 要涉及这样的一个buttonbar,主要就是要用到style="@android:style/ButtonBar"这个风格。首先还是来看xml的设计,保存layout/bottombtn.xml<?xml version="1.0&quo 阅读全文
posted @ 2011-09-21 12:27 唐勇博客 阅读(1698) 评论(0) 推荐(0) 编辑
摘要: 要放置底端,那么Android自带的例程是不可以做到的(例程参看development-ApiDemo)。先需要写一个xml的layout文档,命名为bottomtab.xml。<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width=&q 阅读全文
posted @ 2011-09-21 12:24 唐勇博客 阅读(788) 评论(0) 推荐(0) 编辑