Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Excellent!

Android allows you to define your UI in XML as well[1]. It's not that novel, Flex does the same thing too. But not to be too dismissive, it would nice to hear of experts in both to tell us what Android might be lacking.

Regards UI editor, yes, Android doesn't have any WYSIWYG UI editors. There is one, but it's 3rd party and not as polished as you describe MS's to be.

--

[1]http://developer.android.com/guide/topics/ui/index.html



Android may allow you to design your ui in xml, but go read a tutorial on custom styling WPF -- I were much doubt you can:

create a new list box which works exactly like a normal listbox would but the items in it are replaced by whatever you write between <datatemplate></datatemplate> tags, and all the bindings you make in the data template are automatically set so that they are bound to the object they represent (ie the dynamic properties in data template 3 are bound to object 3 in the source list). And the entire thing takes only about 30 lines of xml.

Bind any property on any object to any property on any other object

Have any properly which is bound to any other property be automatically updated when the value of that property changes

Attach new properties to any xml element, and execute code when that property changes (useful to change a bool in one class to cause a window to close in another)

You can create entire master detail system and bind them together without haveing to write a line of c# code to tell it how it should look or what it should do -- which means that (if you structure your code right) that you can create unit tests that check that when one button is clicked, an item is removed from a list, etc.

Again, MS have created something that is really, really far ahead of anything else here. Too bad it is windows only.


With respect to Android vs WP7 controls is the lookless nature of Silverlight controls. This allows you to completely reskin and add new behavior to an existing control while maintaining all of its current behavior.


I wrote some code for Android, and I'm currently working on WPF application for windows (which should be similar to Silverlight). Saying that Android XML UI description files are comparable to XAML + Visual Studio XAML designer + Expression Blend is like saying that C# and Java are the same because the source code for both languages can be written using vi - technically it's correct statement, but it completely misses the point.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: