开发者

removing android: prefix for every attribute

开发者 https://www.devze.com 2023-03-02 07:08 出处:网络
Android layout xml file has \"android:\" prefix with every attribute. is there any solution for removing them.

Android layout xml file has "android:" prefix with every attribute.

is there any solution for removing them.

<?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开发者_Go百科:id="@+id/button1"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:text="@string/test_button">
  </Button>
</LinearLayout>


May be this post helps you; http://groups.google.com/group/android-developers/browse_thread/thread/d94c1f53a331c53b

Please see this post to know, why there is an android prefix; Android XML layout files and namespace

Update: (After Josh's comment)

Another way to do the same is to use a regular expression in Eclipse's Find/Replace tool. This method is easier than the first one.

0

精彩评论

暂无评论...
验证码 换一张
取 消