First of all, I would like to apologise if my question is very basic – I don’t know which keywords are useful to find the answer.
I know how to programme two “types” of application – ones which are run by .xml files (for instance, a converter from Celsius to Fahrenheit, some options menu and so on), and ones which are run with a class which extends View (for applications with graphical components). My question is, how to combine them? More precisely, how to add a View component into an XML file? Practical example: drawing a circle in an options menu, which moves once touched.
Thank you in advance.
I don’t know about drawing a circle in options menu, but in general you can use your custom View classes in layout xmls like this;
Making them very much alike compared to using TextViews, ImageViews etc.