Skip to main content

Posts

Showing posts from September, 2018

Day 36

We learnt how to add menu items on navigation drawer and how to retrieve data from fire base and display on the navigation drawer. The navigation drawer is a UI panel that shows your app's main navigation menu. It is hidden when not in use, but appears when the user swipes a finger from the left edge of the screen or, when at the top level of the app, the user touches the drawer icon in the app bar.

Day 35

We learnt about adding menu items to app bar and worked on the static database(SQ lite) for Yard Tracker.  Step 1: Open an Activity Class. Step 2: Create a Resources Folder. Step 3: Create a  Menu  XML File.  Step 4: Add  Items  to Your  Menu .  Step 5: Create Icons for Your  Menu Items .  Step 6: Inflate Your  Menu  Resource.  Step 7: Detect User Interaction. Step 8: Respond to  Menu Item  Selection.

Day 34

We learnt about adding menu items to app bar and worked on the static database(SQ lite) for Yard Tracker.  Step 1: Open an Activity Class. Step 2: Create a Resources Folder. Step 3: Create a  Menu  XML File.  Step 4: Add  Items  to Your  Menu .  Step 5: Create Icons for Your  Menu Items .  Step 6: Inflate Your  Menu  Resource.  Step 7: Detect User Interaction. Step 8: Respond to  Menu Item  Selection.

Day 33

We learnt about adding menu items to app bar and worked on the static database(SQ lite) for Yard Tracker.  Step 1: Open an Activity Class. Step 2: Create a Resources Folder. Step 3: Create a  Menu  XML File.  Step 4: Add  Items  to Your  Menu .  Step 5: Create Icons for Your  Menu Items .  Step 6: Inflate Your  Menu  Resource.  Step 7: Detect User Interaction. Step 8: Respond to  Menu Item  Selection.

Day 32

We learnt about adding menu items to app bar and worked on the static database(SQ lite) for Yard Tracker.  Step 1: Open an Activity Class. Step 2: Create a Resources Folder. Step 3: Create a  Menu  XML File.  Step 4: Add  Items  to Your  Menu .  Step 5: Create Icons for Your  Menu Items .  Step 6: Inflate Your  Menu  Resource.  Step 7: Detect User Interaction. Step 8: Respond to  Menu Item  Selection.

Day 31

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: Right-click the  res  folder and go to  New > Android resource directory ....

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: Right-click the  res  folder and go to  New > Android resource directory ....

Day 29

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: Right-click the  res  folder and go to  New > Android resource directory ....

Day 28

We learnt about bundles and also about shared preferences and used it in a music player to save the last song played by the user. Bundle  is used to pass data between Activities. You can create a  bundle , pass it to Intent that starts the activity which then can be used from the destination activity. Bundle :- A mapping from String values to various Parcelable types.  Bundle  is generally used for passing data between various activities of  android.

Day 27

We learnt and worked with services and how to create services using intent service. Also we learnt about various types of services. A  Service  is an  Android  application component without a UI that runs on the main thread (of the hosting process). It also has to be declared in the AndroidManifest.xml. If you want the  service  code to run in a Background Thread, then you must manage that yourself.

Day 26

Today we used TimePicker and DatePicker API and also worked with notification manager. Android provides controls for the user to pick a time or pick a date as ready-to-use dialogs. Each picker provides controls for selecting each part of the time (hour, minute, AM/PM) or date (month, day, year). Using these pickers helps ensure that your users can pick a time or date that is valid, formatted correctly, and adjusted to the user's locale. The   DialogFragment   manages the dialog lifecycle for you and allows you to display the pickers in different layout configurations, such as in a basic dialog on handsets or as an embedded part of the layout on large screens. Although  DialogFragment  was first added to the platform in Android 3.0 (API level 11), if your app supports versions of Android older than 3.0—even as low as Android 1.6—you can use the  DialogFragment  class that's available in the  support library  for backward compatibility.

Day 25

Today we worked on autocomplete text view, fragments and web view. We tried to form mini applications to learn the working of the tools. Fragments  Part of  Android  Jetpack. A  Fragment represents a behavior or a portion of user interface in a FragmentActivity . You can combine multiple fragments  in a single activity to build a multi-pane UI and reuse a  fragment  in multiple activities.

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 23

Today we implemented loading bar in one of our applications. And also worked on retrieving and displaying data from fire base. In Android,  ProgressBar  is used to display the status of work being done like analyzing status of work or downloading a file etc. In Android, by default a  progress bar  will be displayed as a spinning wheel but If we want it to be displayed as a horizontal bar then we need to use style attribute as horizontal. It mainly use the  “android.widget.ProgressBar”  class.

Day 22

Today we worked on picasso library. We learnt how to add photos and crop them to make them fit in our (displayed picture) application. Images add much-needed context and visual flair to  Android  applications.  Picasso  allows for hassle-free image loading in your application—often in one line of code. Complex image transformations with minimal memory use. Automatic memory and disk caching.