Today we worked on fragments. A fragment is an independent Android component which can be used by an activity. A fragment encapsulates functionality so that it is easier to reuse within activities and layouts.A fragment runs in the context of an activity, but has its own life cycle and typically its own user interface. It is also possible to define fragments without an user interface, i.e., headless fragments.Android devices exists in a variety of screen sizes and densities. Fragments simplify the reuse of components in different layouts and their logic. You can build single-pane layouts for handsets (phones) and multi-pane layouts for tablets. You can also use fragments also to support different layout for landscape and portrait orientation on a smartphone.As it is possible to dynamically add and remove fragments from an activity. The usage of fragments allows to design very flexible user interfaces.
Today we started working on UI of our application and we developed sin up and login forms and customized it's design. The user interface for an Android app is built using a hierarchy of layouts ( ViewGroup objects) and widgets ( View objects). Layouts are containers that control how their child views are positioned on the screen. Widgets are UI components such as buttons and text boxes.
Comments
Post a Comment