Compose Camp
Android Basics with Compose:
Unit 3 Pathway 1
Dhruv
Android Lead
Brijesh Chauhan
Android Lead
Speakers
Welcome Back
Any questions
TOPIC TIME
Kotlin Fundamentals 01:15 - 0:00
Build Affirmations App 0:00 - 0:00
Change App Icons 0:00 - 2:30
Material theme Intro 2:30 - 2:50
Surprise 2:50 - 3:00
Wrap Up 0:00 - 1:30
Today’s Schedule
Kotlin Fundamentals
Generic allow a data type, such as
a class, to specify an unknown
placeholder data type that can be
used with its properties and
methods.
Generics
Define Genric datatype class
Instance of Generic Class
Enum Class
An enum class is used to create
types with a limited set of
possible values
Data Class
Classes which only contain data. They don't
have any methods that perform an action.
Singleton object
A singleton is a class that can only have
a single instance.
Singleton objects syntax
to Access property
to make object companion
Extend classes with new properties and
methods
apply{}
let{}
with{}
run{}
Some scope functions in kotlin
are:
Scope Functions
Collections in Kotlin
Arrays in Kotlin
An array is a sequence of values that all have the same data type.
Array Syntax
to create array in kotlin:
to access element:
to update value:
Problem in array
List
A list is an ordered, resizable collection, typically
implemented as a resizable array.
To iterate element of list:
Sets
A set is a collection that does not have a specific order and
doesn't allow duplicate values.
Map collection
A Map is a collection consisting of keys and values. It's called a map
because unique keys are mapped to other values.
Syntax to create Map in Kotlin
Higher order Functions in
Kotlin
forEach() function
The forEach() function executes the function
passed as a parameter once for each item in the
collection.
map() function
The map() function lets you transform a collection into a new
collection with the same number of elements.
filter() function
The filter() function lets you
create a subset of a
collection.
More Higher Order Functions
groupBy()
fold()
sortedBy()
Here are some more higher order functions:
Practise Set 1
Now it's time to make an
Affiramation App
Output of Affirmation App
Practise Set 2
Build a grid layout in your app.
Get the starter code
Material theming in Kotlin
Colour Scheme for app based on different
themes
Typography heirarchy for the application
Revealing Surprise !!
Compose
Compose
Camp
Camp
Session 4
Friday, October 7th
Audi 5, Raman Block
Compose Camp app submission guidelines
Problem Statements
An app which could help your
fellow students or faculty or
college. Some suggestions
here could be, Time-table
tracking app, Attendance
recording app, University
transportation tracking app,
University navigation app,
University database for
different departments etc.
College or University App
Recreate four or more
screens of any play store
application (with >=50000
downloads) using Jetpack
Compose. You can choose to
make clones of social media
apps, music apps or any other
application that is commonly
used in your region.
Clone App
An app that can change an
individual’s life or whole
business performance. We
would encourage you to go to
small local business owners e.g.
Bakery Shop, Gyms Centers,
Restaurant or any other local
businesses to understand their
business model and identify a
problem that can be solved by
using an app.
Solution App
App
Submission
Social Media
https://forms.gle/Zfopvf4zHSw
BSsFRA
linktr.ee/gdsc_miet
Join GDSC official
WhatsApp group
Lets Begin the
Questions &
Answers
Round

Compose Camp session 4.pptx.pdf