Hope you all are doing well, first of all thank you so much for reading my previous blog:
Today we will learn about the development of UI (user interface) for android applications using components provided by Android itself. For development of UI Android provides “Widgets” for developing the desired interface. All the widgets created by XML files and we can use them in the Android User Interface. Here I am explaining how many types of widgets provided by android and how to use them in android layout or XML file. Widgets:
Here are some other layouts and widgets provided by Android for use in application:
XML files are basically used for designing UI in Android and XML files have some predefined tags. With the help of these tags we have to first create a layout for placing our widgets on it and types of layouts are given in the images. Here I am using linear layout, Linear layout: it is a layout which places one after other, it places objects or widgets either in row or in column and place them horizontal or in vertical manner. Here I am creating a login page with the help of linear layout, I will use two text fields and one two buttons for creating the attractive UI. We can also use Background images. Start here,
Code is here
Thank you for reading. Hope you enjoyed learning android. Next time, I will be back with something new about Android.Keep learning. Happy coding!
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: