Hi to all, That's my question, I want design all the interface of my application within an XML layout but I want to handle all the onTouch events, move ImageViews, etc, from a Java Class, this is possible?
Thank you in advance.
Hi to all, That's my question, I want design all the interface of my application within an XML layout but I want to handle all the onTouch events, move ImageViews, etc, from a Java Class, this is possible?
Thank you in advance.
LayoutInflaters let you convert XML layouts to the corresponding View objects in Android.
Yoni is correct, but I'd add one thing.
Don't ever change the XML files on the device. They're compiled into binary files so any changes you make to them won't actually impact the UI. All changes you make to the inflated objects will, however, have the expected results.