6. Creating the User Interface
â Fragments are modular containers within your activity
â Fragments can also have the own UIs
You can use the visual editor to create your layouts
7. Adding ListItem
1. Create a layout file called list_item_forecast
2. Define a textview as the rootview
3. then assign id as list_item_forecast_textview
4. Give it a minimum height so that it not too short to click on
5. then vertically center the text within the item
8.
9. Introducing Responsive Design
We need to build for Different Screen Sizes.
You app UI should scale according to different screen sizes.
Hence the reason Abosolute Layout was deprecated in favor of Layouts like
Linear Layout, Relative Layout and GridLayout.
They dynamic adapt to any screen size following the principles of Reponsive
Design
19. RECAP
New Concepts
â Android Studio
â SDK - Target and Minimum
â Emulators vs. Real Devices
â Gradle
â Application
â Activity
â Fragment
â Views and ViewGroups
â Views and XML layouts
â ListView
â Adapter