XML文件内容如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    ><TextView      android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/hello"    /></LinearLayout>   修改后XML文件内容如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    ><TextView      android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/hello"    android:gravity="center"    /></LinearLayout>

更多相关文章

  1. NPM 和webpack 的基础使用
  2. 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
  3. android java 调用 .so 动态库实例
  4. android 读写文件
  5. Android(安卓)删除指定文件代码
  6. Android中带分割线的九宫格
  7. android(4)(短信发送器)
  8. Android(安卓)JNI编程
  9. Android(安卓)背光流程小结

随机推荐

  1. HTML5-Service Worker实现离线页面访问
  2. reload a div without reloading the who
  3. js获取html下拉框中选中值的自定义属性值
  4. html+css 图片右上角加删除叉,图片删除
  5. HTML DIV百分比宽度奇奇怪怪的间距产生了
  6. seo 优化去掉html 页面的后缀 .html
  7. form在提交时被取消:因为form没有被连接
  8. 使用表单字段值定制CSS属性。
  9. 使用jQuery和AJAX从JSON文件加载数据
  10. XHTML 相对路径与绝对路径