How to Make a Text-Based Adventure Game in Android Studio (Java/Kotlin) Part 4
In this video, I will explain how to design a screen by using LinearLayout and ratio (weight) so the screen's component balance won't change on any device.
The pictures used in the game are all from: https://game-icons.net/ (under CC BY 3.0 license):
- carnivorous-plant (by Delapouite)
- dungeon-gate (by Delapouite)
- gargoyle (by Delapouite)
- sword-altar (by Delapouite)
- trail (by Delapouite)
- warp-pipe (by Delapouite)
- hasty-grave (by Skoll)
- open-treasure-chest (by Skoll)
- wooden-sign (by Lorc)
The ending music:
Once Again (https://www.bensound.com)
Time Stamps:
0:00 Create another activity
1:24 Introducing LinearLayout
4:16 Place an image with ImageView
7:03 Adjust the component ratio by layout weight
8:41 Test several device settings
12:24 Adding margin to each component
#LinearLayout #tutorial #android