Pretty harsh answer Mark, I totally agree with strenn and I was actually waiting for a 'real' answer on this subject : How not to have to type "android:something" but just "something", not like "instead of"
I agree that it kills readability, it is cumbersome, and not very useful. Your solution is not a solution : having to type a: instead of android: might be shorter but it still adds non-interesting bits to the interesting bits. So if someone knows of a solution to declare the namespace once and for all at the top of the file or something that would be great. Anyway, just my opinion, but I always found xml to be way to complicated for most of the task I use it for, and in Android it feels exactly the same. Killing a fly with truck :D Thanks for your partial answer. Yahel On 8 mar, 19:19, Mark Murphy <[email protected]> wrote: > sstrenn wrote: > > Is there any plan to eliminate the requirement to add the "android:" > > namespace to attributes in layout files? > > There is no requirement to add the "android:" namespace to attributes in > layout files. > > There *is* a requirement to add the > "http://schemas.android.com/apk/res/android" namespace to your file and > use its associated prefix with attributes in layout files. > > > And instead of adding value, > > they make the files VERY DIFFICULT TO READ AND EDIT. > > This is your opinion. > > > Is there any relief in sight? > > Step #1: Open up a layout file in your favorite IDE or text editor > > Step #2: Change the xmlns:android namespace declaration to use whatever > prefix you want, such as xmlns:a > > Step #3: Change all occurrences of android: in that file to your > preferred prefix (e.g,. a:) > > Step #4: Lather, rinse, repeat for all layout files you wish to modify > > You might consider learning about XML namespaces, rather than > complaining about things you are perfectly capable of resolving yourself: > > http://en.wikipedia.org/wiki/Xml_namespace > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.0 > Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

