Skip to content

Hosam11/Advanced-Android-with-Kotlin-part1

Repository files navigation

Advanced-Android-with-Kotlin-part1

This repo for what I learned in:

1- Notifications - EggTimer App

EggTimer is a timer app for cooking eggs. You can start and stop the timer, choose different cooking intervals then the app send notification.

This app demonstrates the following views and techniques:

  • NotificationManager, NotificationChannel, NotificationStyle and adding action to notifications.
  • Implement a Firebase Cloud Messaging
  • Send a data payload using a RemoteMessage object

Code Link

Lesson 2: Advanced Graphics

2.1 Creating Custom Views - FanController App

The app creates a circular UI element that resembles a physical fan control. It uses a custom view that extends View to draw a circular fan control dial with an indicator and text labels for the settings: 0 (off), 1 (low), 2 (medium), and 3 (high). When the user clicks the dial, it moves the dial indicator to the next selection, and changes the dial's color from gray to other colors for selections 1-3.

This app demonstrates the following views and techniques:

  • Create custom view that extends View
  • Override View methods such as onDraw(), performClick() and onSizeChanged()
  • Create custom attributes

Code Link

off 1 2 3

2.2 Drawing on Canvas Objects - MiniPaint App

This app uses a custom view to implement drawing on a canvas in response to touch events. All drawing happens on the UI thread by overriding the custom view's onDraw() method. You can use this technique when drawing always takes less time than a screen refresh cycle on all target devices.

Code Link

empty helloWorld

Lesson 3: Animation

3.1 Property Animation

smiple application that animates stars on the screen by changing various View properties that control position, size, rotation, and translucency when pressed the buttons

This app demonstrates the following views and techniques:

  • ObjectAnimator, AnimatorListeners, AnimatorSet, LinearInterpolator, PropertyValuesHolder

Code Link

Demo

animation property demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published