When designing view controllers in XCode you can easily bind a variable in the class with an element in the storyboard editor they are refered to as @IBOutlets
and get linked to the interface when the view controller is loaded.
In android so far I find myself having to call findViewById
in the onCreate method of an activity and then manually bind all instance variable to their interface xml counterpart.
Is it possible to define in the layout file the corresponding variable for the interface element so that they get linked together when instantiated without having to call findViewById later in the onCreate?