tabhost如何去除底部下划线 最好是能写出代码 加上注释。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个问题是可以解决的,具体做法我忘了,只记得思路,是把有下划线那排按钮控件的visible 设置成gone,然后自己添加一排按钮,在按钮的响应函数里,调用tablehost的换页的功能。没时间帮你查了,楼主自己查一下,按照这种思路肯定是没有问题的。 public void setIndicater(TabSpec body, String title, Drawable icon,TabWidget tw, Context context) {// body.setIndicator(title,icon); RelativeLayout tabIndicator1 = (RelativeLayout) LayoutInflater.from(context).inflate(R.layout.indicater, tw,false); TextView tvTab = (TextView)tabIndicator1.getChildAt(1); tvTab.setText(title); ImageView img = (ImageView)tabIndicator1.getChildAt(0); img.setImageDrawable(icon); body.setIndicator(tabIndicator1); }自定义Indicator 试试 为Button设置监听(OnClickListener)事件,能传入参数吗? 程序在eclipse中运行正常却在真机不能正常运行是什么原因?注:eclipse中能够识别真机 android中使用sqlite3执行SQL语句的问题!! 关于ndk opengl 收集Android面试题目,越多越好? 在代码 中控制ui界面 ,控件布局失败,总是默认布局 android 异步刷新界面问题 android studio使用 Eclipse 配置cocos2dx调试环境 不能进入断点 android studio前言中不允许有内容 tcp如何组包 安卓手机如何接受pc端发的at指令
{
// body.setIndicator(title,icon);
RelativeLayout tabIndicator1 = (RelativeLayout) LayoutInflater.from(context).inflate(R.layout.indicater, tw,false);
TextView tvTab = (TextView)tabIndicator1.getChildAt(1);
tvTab.setText(title);
ImageView img = (ImageView)tabIndicator1.getChildAt(0);
img.setImageDrawable(icon);
body.setIndicator(tabIndicator1);
}
自定义Indicator 试试