Removing android: prefix for each attribute

In the xml file for the Android layout, there is a prefix "android:" with each attribute.

is there any solution to remove 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:id="@+id/button1"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:text="@string/test_button">
  </Button>
</LinearLayout>
+3
source share
1 answer

Maybe this post will help you; http://groups.google.com/group/android-developers/browse_thread/thread/d94c1f53a331c53b

Please check out this post why there is an android prefix; Android XML Files and Namespace

Update: (after Josh comment)

Another way to do the same is to use a regular expression in the Eclipse search / replace tool. This method is simpler than the first.

+5
source

All Articles