<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/default_bg">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_alignParentBottom="true" android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<FrameLayout android:id="@android:id/tabcontent"
android:layout_weight="1" android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
</TabHost>为什么android:id="@android:id/tabhost"前加了android:,
但是android:background="@drawable/default_bg"前面又没有android:,
如果我写成android:background="@android:drawable/default_bg"还要报错,
这是怎么回事呢?
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/default_bg">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_alignParentBottom="true" android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<FrameLayout android:id="@android:id/tabcontent"
android:layout_weight="1" android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
</TabHost>为什么android:id="@android:id/tabhost"前加了android:,
但是android:background="@drawable/default_bg"前面又没有android:,
如果我写成android:background="@android:drawable/default_bg"还要报错,
这是怎么回事呢?
解决方案 »
- 大家帮忙看下,谁知道android的名片识别功能怎么实现的啊
- Android4.0以上版本视频缩略图在哪里生成的?缩略图与文件之间的关联关系又存在哪里?
- Android如何能让一个页面平分成两块
- android camera焦距设置
- android第三方软件的text输入框中控制光标的代码在哪里?
- android devlop and android shop
- 关于模拟微信地址
- eclipse导入android项目的问题
- 点击网址可以跳转到淘宝客户端浏览,这个是怎么做的呢?
- androidstudio拖动SeekBar为什么会影响其它按钮的隐藏状态?
- addContentView和setContentView的区别
- 使用Google Map API开发的程序,在模拟器上可以正常运行。放到手机上一打开就出错
android:id="@android:id/tabhost" 这@android: 意思是引用android 系统自带的idandroid:background="@drawable/default_bg" 这@drawable 意思是引用自己项目下 drawable 文件夹下的default_bg.xx 图片
LZ使用"@android:drawable/default_bg"是由于android系统 自带的资源图片没有以default_bg.xx 的图片