Posts

Showing posts with the label Android Layout

Relative Layout and Just Maths Screen Layouts

Image
In the previous post, we looked at Linear Layout . There is another layout which is extremely helpful and flexible in designing good looking apps i.e. Relative Layout. This layout arranges your views relative to its parent or other child views. You can say something like - align this TextView to the left of EditText or align this Button below EditText. To position views inside Relative Layout, child views have to specify layout attributes which align them inside relative layout. If you do not specify any layout attributes for child views, all the child views will be aligned at the top-left corner of the relative layout.

Just Maths - Views, View Groups and Layouts

Image
Great android apps require great design. For great design you need to master layouts. Layout is one of the basic building block of Android User Interface. Lets jump right in and try designing layout for our app - Just Maths. Just Maths has 3 screens - Main Menu Screen, Game Screen and Score Screen. Each of the screen is designed using Relative Layout and Linear Layout. There are other layouts as well like Frame Layout, Table Layout and Grid Layout. But you can design anything using only Relative Layout and Linear Layout. These layouts are nothing but View Groups.

Just Maths - Android Activities and Layouts

Image
Let's start creating our first app - Just Maths. This will be a small app to introduce you to the various aspects of Android App Development - starting with activities and layouts. So just jump right in. What is Activity? Activity is just a single screen. Yes it is that simple. So in our case - Main Menu Screen is one activity, Game Screen is another activity and Score Screen is another activity. Activity is a screen that displays some information to the user or requires some input from the user. Activity handles the interaction with the user.