xml文件 android:id
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="#ff000000"/>

调用时android:id
tabHost = (TabHost) this.findViewById(android.R.id.tabhost);


xml中android:text一般这样写
<TextView
android:text="正在保存书签..."
android:textColor="#ffffff"
android:textSize="18dip"
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
还有一种写法是android:text="@string/hello"
<TextView
android:text="@string/hello"
android:textColor="#ffffff"
android:textSize="18dip"
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
在values文件夹中string.xml的这行的值
<string name="hello">Hello World, MainActivity!</string>

更多相关文章

  1. Android: 向最强看齐, 反编译 愤怒的小鸟.apk
  2. Android: 向最强看齐, 反编译 愤怒的小鸟.apk
  3. Android: 向最强看齐, 反编译 愤怒的小鸟.apk
  4. Android电池
  5. webpack 配置文件webpack.config.js
  6. webpack 中使用 axios 方法总结及初识 vue
  7. 如何在 Ubuntu 20.04 上添加交换空间
  8. Java基于BIO实现文件上传功能
  9. Docker —— 简介与镜像用法

随机推荐

  1. MySQL客户端输出窗口显示中文乱码问题解
  2. 通过php mysql更新表
  3. MySQL(Navicat)运行.sql文件时报错:[Err]
  4. 数据库中的结果分页如何工作?
  5. 两个MYSQL表关联查询
  6. mysql 先排序后分组再排序查询数据
  7. MySql查询随机几条数据
  8. [MySQL] 主流存储引擎介绍
  9. MySQL数据库总结(8)字符集与校对集
  10. MySql某一列累计查询