今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。效果如http://www.sisou.cn/read-htm-tid-451.html所示,的确是个好想法,这样貌似也的确漂亮一些,有点类似IPhone里的布局了,呵呵~(其实后来发现这个应该不是用TAB做的,而是ButtonBar做出来的吧,或者是他重写了TAB?总之不是简单地将TAB放置底端了)。

  要放置底端,那么Android自带的例程是不可以做到的(例程参看development-ApiDemo)。先需要写一个xml的layout文档,命名为bottomtab.xml。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro>

device

以上资料参考:

http://www.anddev.org/viewtopic.php?p=21932

http://stackoverflow.com/questions/2395661/android-tabs-at-the-bottom

注意 

Weather.class 等Activity要在 在AndroidMenifest.xml添加声明

在 application tag之间加上

 

        </activity>
                <activity android:name=".Weather">
        </activity>
                <activity android:name=".MailSend">
        </activity>
                <activity android:name=".TabJump">
        </activity>
 

 

 

相关文章: