Work with my first Android app. I am wondering if there is a way to use xmlns in markup in any way. In Flex, for example, I can define a namespace:
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cb="com.typeoneerror.apps.app.views.components.*"> <cb:CustomComponent paramName="demo"></cb:CustomComponent> </mx:VBox>
Android seems a bit different. You use the namespace when defining parameters, but not in the tag itself. This is a bit of verbosity for me, so I'm wondering if there is a way to tweak or change this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cb="http://schemas.android.com/apk/res/com.typeoneerror.apps.app"> <com.typeoneerror.apps.app.views.components.CustomComponent cb:paramName="demo"/> </LinearLayout>
I would like to use
<cb:CustomComponent cb:paramName="demo"></cb:CustomComponent>
Possible?
typeoneerror
source share