AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Stock android studio icon11/11/2022 ![]() ![]() They work together to give users the look, feel, and interaction of an Android app. You have learned that the basic building blocks of any Android's UI comprise View objects and ViewGroup objects. It is like an interior plan of a house that has one space nested in another, each may layout their own household items in a different way. The concepturalized UI in Figure 1 consists of a number of View objects organized into two ViewGroups - one ViewGroup is embedded in another. This concept is best illustrated by the three diagrams from Figures 1 to 3.įirst, the conceptual plan. ![]() You may liken the ViewGroup's layouts as the layout of rooms and space in the house. In fact, ViewGroup class is also derived from View class, in other words, you can have a ViewGroup object (child) nested in another ViewGroup object (parent), and each can take on different layouts. For example, you may arrange the UI controls one above another in a linear fashion using LinearLayout layout, or relative to each other using RelativeLayout layout. The ViewGroup class, on the other hand, is the invisible organizer that provides a variety of UI layouts to position the various View objects on your screen. ![]() You may liken the various View objects as household items like furniture and appliances in a house. Every visible UI control occupies an area on your screen and provides the point of interaction between you and the app through events like clicking, touching, and keying. The View class is the base class of all graphical UI objects collectively called UI controls or Widgets like Button, TextView, EditText, CheckBox, RadioButton, ImageView, Spinner, and many more, that you see on your Android device's screen. I have set the scope of this article to cover the more common and more important UI layouts and UI controls as follows:Įvery Android's user interface is composed of a hierarchical collection of View and ViewGroup objects. Nowadays, a typical UI is graphical based, comprising UI controls like textbox, button, checkbox, radio button, datepicker, and many more, and is presented in a variety of layouts. Take out your Android phone, pick an app, and launch it, what comes into sight? The User Interface! The user interface or UI is the only thing and everything that the user can see and interact with your app. So, where shall we begin? The answer lies with your Android phone. In the subsequent tutorials that follow, we are going to scrutinize and explore the various building blocks that make up an Android app. You would have gained an overview of how an Android app is being built. You have got your hands dirty while Creating a Simple Hello World Android Project. Stock android studio icon download#Download app-release-apk.zip - 456.5 KB. ![]()
0 Comments
Read More
Leave a Reply. |