android 中怎样能让tabhost竖起来啊 比如:table1 table2 table3----------------------------------要改成:table1 | | table2 | |table3 | | | | 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己写个吧如果不想写个可移植的组件的话 不是很麻烦主要要考虑转屏 和 menu tabActivity也是继承ActivityGroup的,我个人更偏向于用activityGroup做tab,不知道其他高人有更好的想法没。 使用activityGroup来仿写tab仿照这篇文章写一个就行了http://blog.csdn.net/hellogv/article/details/6057174 在TabActivity派生类的onPostCreate里面把content view改成自己的,本来是这样的布局:<TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TabWidget android:id="@android:id/tabs" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0"/> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="match_parent" android:layout_height="0dip" android:layout_weight="1"/> </LinearLayout></TabHost>把TabWidget改成纵向的,和FrameLayout水平形成两列。可以尝试一下。 在布局文件TabHost中不是有一个android:layout_gravity?这个可以设置位置啊.还有就是可以设置水平和垂直啊 android里可以做条件编译吗 帮忙看看这是什么错? 请教一个写游戏中遇到的问题 android2.3.3用MediaRecroder录制开始结束都有个提示音能去掉么? 跪求!android 往sd卡里谢文件的源码 android模拟器中图标怎么删除 android 图片全屏问题 急啊 android访问webservices登录验证怎么保存登录状态 问个android开发的外行问题 安卓错误求教大家 android系统升级问题 三个图 滑动轮换效果,在线等
如果不想写个可移植的组件的话 不是很麻烦
主要要考虑转屏 和 menu
不知道其他高人有更好的想法没。
仿照这篇文章写一个就行了http://blog.csdn.net/hellogv/article/details/6057174
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"> <LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"> <TabWidget
android:id="@android:id/tabs"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"/> <FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"/> </LinearLayout>
</TabHost>
把TabWidget改成纵向的,和FrameLayout水平形成两列。
可以尝试一下。