Langsung ke konten utama

Postingan

Menampilkan postingan dengan label Material Design

How to Customize Snack Bar in Android

Every Android Developer knows about the Snackbar , which is an important component introduced in Material Design. It is similar to Toast used for android Development. But the Snackbar had provides action callback to perform action like Click-listeners  in Button. In this article, we are going to learn How to Customize the Snackbar. Summary We are going learn, Implementation of Default Snackbar Implementation of Snackbar with action callback Snackbar with custom gravity for message text Snackbar with custom color Snackbar with custom text color for message and action. Snackbar with custom typeface for message text and action text. Implementation of Top Snackbar Implementation of Default Snackbar Below is the syntax of a simple Snackbar. The make function accepts three parameters. View, display message and duration of the message to be displayed. Snackbar.make(v, "Normal Snackbar", Snackbar.LENGTH_LONG).show(); Implementation of Snackbar with action callback Below...

Principles Of The Material

Hi! today we will talk about Material Design. It was presented at Google I/O conference in 2014 just as a concept and became popular very fast. Many app developers started to redesign their apps even without any help from SDK. And to be honest, they didn't even understand what Material Design is, primarily because even Google didn't really understand what it is. But at the moment, it's clear and understandable. With time Material Design got support from SDK and now we can build colorful, responsive, natural layouts with the very little effort. Material Design was invented with the endeavor to bring more of a real world to the digital space but keep it minimalistic. To achieve this goal three principles were stated. Digital paper Digital paper is the metaphor to reach the understanding of what is happening on the screen.  Computers and digital devices were designed to reduce all the paperwork in our life but paper is still a convenient way of storing and transferring...