怎样将系统平台界面 添加到 自定义的 Tab中

yitiaochongzi 2010-07-20 11:58:29
例如拨号盘
...全文
73 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Vyphn 2010-07-21
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wang_zun_ren 的回复:]

你只要知道界面Activity的action name 即可。
使用类似以下代码:

Intent listIntent = new Intent("SystemActivity_action_name");
TabSpec spec = tabHost.newTabSpec("Tab1");
spec.setIndicator(null, getRes……
[/Quote]

学习了
wang_zun_ren 2010-07-21
  • 打赏
  • 举报
回复
你只要知道界面Activity的action name 即可。
使用类似以下代码:

Intent listIntent = new Intent("SystemActivity_action_name");
TabSpec spec = tabHost.newTabSpec("Tab1");
spec.setIndicator(null, getResources().getDrawable(R.drawable.ic_menu_play_clip));
spec.setContent(listIntent);
tabHost.addTab(spec);

80,472

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧