Skip to main content

Day 30

We worked on Yard Tracker's login and registration page. We also learnt about styles and fonts.Android 8.0 (API level 26) introduces a new feature, Fonts in XML, which lets you use fonts as resources. You can add the font file in the res/font/ folder to bundle fonts as resources. These fonts are compiled in your R file and are automatically available in Android Studio. You can access the font resources with the help of a new resource type, font. For example, to access a font resource, use @font/myfont, or R.font.myfont.
To use the Fonts in XML feature on devices running Android 4.1 (API level 16) and higher, use the Support Library 26. For more information on using the support library, refer to the Using the support library section.
To add fonts as resources, perform the following steps in the Android Studio:
  1. Right-click the res folder and go to New > Android resource directory.
    The New Resource Directory window appears.
  2. In the Resource type list, select font, and then click OK.

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.