Podcast
Questions and Answers
Absolute positioning (C++, C#, others): – – Programmer specifies exact pixel coordinates of every component. 'Put this button at (x=15, y=75) and make it 70x31 px in size.'
Absolute positioning (C++, C#, others): – – Programmer specifies exact pixel coordinates of every component. 'Put this button at (x=15, y=75) and make it 70x31 px in size.'
programmer
Layout managers (Java, Android): – Objects that decide where to position each component based on some general rules or criteria. 'Put these four buttons into a 2x2 grid and put these text boxes in a horizontal flow in the south part of the app.' More flexible and general; works better with a variety of devices.
Layout managers (Java, Android): – Objects that decide where to position each component based on some general rules or criteria. 'Put these four buttons into a 2x2 grid and put these text boxes in a horizontal flow in the south part of the app.' More flexible and general; works better with a variety of devices.
layout managers
ViewGroup as layout ViewGroup superclass represents containers of widgets/views – – – layouts are described in XML and mirrored in Java code Android provides several pre-existing layout managers; you can define your own custom layouts if needed layouts can be nested to achieve combinations of features in the Java code and XML: – – – an Activity is a ViewGroup various Layout classes are also ViewGr.
ViewGroup as layout ViewGroup superclass represents containers of widgets/views – – – layouts are described in XML and mirrored in Java code Android provides several pre-existing layout managers; you can define your own custom layouts if needed layouts can be nested to achieve combinations of features in the Java code and XML: – – – an Activity is a ViewGroup various Layout classes are also ViewGr.
viewgroup
Sizing and ______ How does the programmer specify where each component appears, how big each component should be, etc.
Sizing and ______ How does the programmer specify where each component appears, how big each component should be, etc.
Signup and view all the answers
Layouts can be ______ to achieve combinations of features in the Java code and XML
Layouts can be ______ to achieve combinations of features in the Java code and XML
Signup and view all the answers
Which programming language uses absolute positioning to specify the exact pixel coordinates of every component?
Which programming language uses absolute positioning to specify the exact pixel coordinates of every component?
Signup and view all the answers
Which of the following is true about layout managers in Java and Android?
Which of the following is true about layout managers in Java and Android?
Signup and view all the answers
What is the advantage of using layout managers over absolute positioning?
What is the advantage of using layout managers over absolute positioning?
Signup and view all the answers
What is a ViewGroup in Android?
What is a ViewGroup in Android?
Signup and view all the answers
Can layouts be nested in both Java code and XML?
Can layouts be nested in both Java code and XML?
Signup and view all the answers