Coding Bihar

Android App Development

Coding Bihar is dedicated to providing you with the knowledge and tools you need to excel in Android development. Start your journey with us and transform your app ideas into reality with Jetpack Compose. Connect, learn, and grow with Coding Bihar today!

Android App Development and Jetpack Compose

Android App Development and Jetpack Compose - Coding Bihar



Jetpack Compose  and Material Design 

Jetpack Compose is Android’s recommended modern toolkit for building native UI. A Compose app is made up of composable functions - just regular functions marked with @Composable, which can call other composable functions. 

Why should we use Jetpack Compose for Android App?

Declarative: It is fully declarative so that we can describe our UI components by calling some predefined functions. Compatible: It is easily compatible with the existing views present in Android. 

Increase development speed: Previously developers have to work on the XML file and Kotlin file. But with the help of Jetpack Compose this becomes easy and now developers only have to work on the Kotlin files that’s why it will help developers in increasing development speed. 

Easy to maintain: As the codebase of any application is present in a single file. It becomes easy to manage and handle the codebase of the application.

Written in Kotlin: The application written using jetpack compose uses Kotlin programming language.



Material Design 

Material Design : Jetpack Compose offers an implementation of Material Design components and theming, making it easy to build beautiful apps that reflect our brand. The Material theming system is easier to understand and trace, without having to consult multiple XML files. 

Composable Function: Composable Function is represented in code by using @Composable annotation to the function name. This function will let you define your app’s UI programmatically by describing its shape and data dependencies rather than focusing on the UI construction process. 

Preview Function: The name of the function itself tells us that the function is used to generate the preview of the composable function. It is used to display a preview of our composable functions within our IDE rather than installing our APK in an emulator or a virtual device. The preview function is annotated by @Preview. 

 Material Design 

Material Design is a design language developed by Google in 2014. Material Design uses more grid-based layouts, responsive animations and transitions, padding, and depth effects such as lighting and shadows. Google announced Material Design on June 25, 2014, at the 2014 Google I/O conference. 

Material Design 1 (M1): The first generation of Material Design, launched in 2014, is archived and accessible at: material.io/archive/guidelines.

Material Design 2 (M2): The second generation of Material Design, launched in 2018, introduced Material Theming and code for Material Components. 

Material Design 3 (M3): The third generation of Material, launched in 2021, a new concept on Android 12 known as "Material You" (also known as "Material Design 3", emphasizing increased animation, larger buttons, and the ability for custom UI themes to be generated from the user's wallpaper. 

Material You was gradually rolled out to various Google apps on older Android versions in the following months, and acted as a major focus on the Pixel 6 and Pixel 6 Pro smartphone series. On Material.io, the design system is organized in three main parts: foundations, styles, and components.

Some Material Design components are

Button

Bottom App bar

Bottom Sheet

Card

Checkbox

Chip

Column and Row

Date picker

Divider

Dialog

Floating Action Button FAB

Snack bar

Spacer

Text

Image

Navigation bar

Navigation Drawer

Navigation Rail

Tabs

Top App bar

Progress Indicator

Slider

Switch

**********************End*******************************

 Sandeep Gupta

Posted by Sandeep Gupta

Please share your feedback us at:sandeep@codingbihar.com. Thank you for being a part of our community!

Special Message

Welcome to coding bihar!