删除每个属性的android:前缀

Fır*_*ÇÜK 3 xml android

Android布局xml文件的每个属性都有"android:"前缀.

有什么解决方案可以删除它们.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/linearLayout1"
  android:layout_height="fill_parent"
  android:layout_width="wrap_content">
  <Button android:id="@+id/button1"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:text="@string/test_button">
  </Button>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

Mud*_*sir 5

可能是这个帖子可以帮到你; http://groups.google.com/group/android-developers/browse_thread/thread/d94c1f53a331c53b

请看这篇帖子知道,为什么有一个android前缀; Android XML布局文件和命名空间

更新:(在Josh的评论之后)

另一种方法是在Eclipse的查找/替换工具中使用正则表达式.这种方法比第一种方法容易.