As a developer in other languages there are 2 things the manuals didn't really go over that I'd like to know more details on.
1. Screen Variants. I like how the designer can adjust for different sizes by code, but I'm not seeing much use for variants with all the possible resolutions. When the app is running does Android scan through this list and find the closest match or something? Something like first matching the rotation then the closest x and y dimensions or what? So, can I just pick a resolution and have portrait and landscape and use code to shift things in each? It sounds like I don't even need to have but one variant and align it in code, but if I only have a portrait variant, will it still work in landscape?
Also, I haven't tried it yet since still reading, but being able to use the dip values and calculations in the property page would be awesome, and almost eliminate the need for the separate tab.
2. I'm also a little confused on the variables for my views. I've seen examples of manually creating the variables and functions for events and I've seen them created in the template fashion by the designer. So, are they really already there and we just need to define them? It sounds like if I make a button called btnOK that means it is sort of a reserved word now and if make a variable called the same name it is not a variable but the button now. It isn't really clear as to what ties the variable names to the controls/views. So, if I call my variable an int does the compiler issue a warning? There were also things like a btnevent_click function used in the examples and not explained well. It appears to be a universal function to get any button click (Which I guess is why you used tag instead of button text otherwise OK would have been added to the textbox when pressed). What other universal functions are there, and is all this already there and all we have to do is declare them to use them?
1. Screen Variants. I like how the designer can adjust for different sizes by code, but I'm not seeing much use for variants with all the possible resolutions. When the app is running does Android scan through this list and find the closest match or something? Something like first matching the rotation then the closest x and y dimensions or what? So, can I just pick a resolution and have portrait and landscape and use code to shift things in each? It sounds like I don't even need to have but one variant and align it in code, but if I only have a portrait variant, will it still work in landscape?
Also, I haven't tried it yet since still reading, but being able to use the dip values and calculations in the property page would be awesome, and almost eliminate the need for the separate tab.
2. I'm also a little confused on the variables for my views. I've seen examples of manually creating the variables and functions for events and I've seen them created in the template fashion by the designer. So, are they really already there and we just need to define them? It sounds like if I make a button called btnOK that means it is sort of a reserved word now and if make a variable called the same name it is not a variable but the button now. It isn't really clear as to what ties the variable names to the controls/views. So, if I call my variable an int does the compiler issue a warning? There were also things like a btnevent_click function used in the examples and not explained well. It appears to be a universal function to get any button click (Which I guess is why you used tag instead of button text otherwise OK would have been added to the textbox when pressed). What other universal functions are there, and is all this already there and all we have to do is declare them to use them?