App sections
Development of each screen of Zomato involves writing of code in two major languages: Java and XML. The code written in XML will mostly involve the UI designs for building the layouts for each screen. It will also be used for writing code that involves styling and theming of the different layouts used in the app, and also other miscellaneous purposes.
In the sections that follow, we will first understand the code to design the layout of the screen and then implement the code logic for the screen. We will walk through each screen starting from the Splash screen and the Login Screen.
Splash, Login, and Signup (including Google and Facebook)
The Splash screen is the first screen of most of the apps. This screen usually has the app logo displayed for a few seconds and then navigates to the next screen. The splash screen can be also used to fetch static data from server at first launch.
Now, we will take a look at the XML layout for designing the splash screen:
<?xml version="1.0"...