Skip to main content

Day 12

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.

Comments

Popular posts from this blog

Day 14

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.

Day 24

Today we worked on a navigation activity, worked with use of float button and item listeners.We also added the validation of unique data storage in fire base in our app. Android  Event  Listeners . In  android , Event  Listener  is an interface in the View class that contains a single call-back method. These methods will be called by the  Android  framework when the View which is registered with  listener  is triggered by user interaction with the item in UI.

Day 62

Worked on time stamp of a ride and history of single page system. A thin wrapper around  java.util.Date  that allows the JDBC API to identify this as an SQL  TIMESTAMP  value. It adds the ability to hold the SQL  TIMESTAMP  fractional seconds value, by allowing the specification of fractional seconds to a precision of nanoseconds. A Timestamp also provides formatting and parsing operations to support the JDBC escape syntax for timestamp values. The precision of a Timestamp object is calculated to be either: 19  , which is the number of characters in yyyy-mm-dd hh:mm:ss 20 + s  , which is the number of characters in the yyyy-mm-dd hh:mm:ss.[fff...] and  s  represents the scale of the given Timestamp, its fractional seconds precision.