SlideShare a Scribd company logo
1 of 14
This work is licensed under the Apache 2.0 License
Camp Composed
Session 2
September 27th
This work is licensed under the Apache 2.0 License
Navaneeth K U
GDSC CCE App Development Lead
Session Lead
This work is licensed under the Apache 2.0 License
Welcome App Developers!
This work is licensed under the Apache 2.0 License
Android Studio Steps to Install
Installing Android Studio
First App
This work is licensed under the Apache 2.0 License
This work is licensed under the Apache 2.0 License
Android Studio Steps to Install
First App
This work is licensed under the Apache 2.0 License
This work is licensed under the Apache 2.0 License
The onCreate() function is the entry point to
this app and calls other functions to build the
user interface. In Kotlin programs, the main()
function is the specific place in your code
where the Kotlin compiler starts. In Android
apps, the onCreate() function fills that role.
onCreate() function
This work is licensed under the Apache 2.0 License
The setContent() function within the
onCreate() function is used to define your
layout through composable functions. All
functions marked with the @Composable
annotation can be called from the
setContent() function or from other
Composable functions. The annotation tells
the Kotlin compiler that this function is used
by Jetpack Compose to generate the UI
setContent()
This work is licensed under the Apache 2.0 License
The scalable pixels (SP) is a unit of measure for
the font size. UI elements in Android apps use
two different units of measurement: density-
independent pixels (DP), which you use later
for the layout, and scalable pixels (SP). By
default, the SP unit is the same size as the DP
unit, but it resizes based on the user's
preferred text size under phone settings.
Units
This work is licensed under the Apache 2.0 License
sp (Scaleable Pixels OR scale-independent
pixels) — this is like the dp unit, but it is also
scaled by the user’s font size preference. It is
recommended you use this unit when
specifying font sizes, so they will be adjusted
for both the screen density and user’s
preference. Note, the Android documentation is
inconsistent on what sp actually stands for, one
doc says “scale-independent pixels”, the other
says “scaleable pixels”.
This work is licensed under the Apache 2.0 License
To create a new project: Open Android Studio, click New Project >
Empty Compose Activity > Next, enter a name for your project and then
configure its settings.
To see how your app looks, use the Preview pane.
Composable functions are like regular functions with a few differences:
functions names are capitalized, you add the @Composable annotation
before the function, @Composable functions can't return anything.
A Modifier is used to augment or decorate your composable.
Summary of First App
This work is licensed under the Apache 2.0 License
Follow Along 
GreetingCard App
This work is licensed under the Apache 2.0 License
THANK YOU!

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Camp Composed Session 2.pptx

  • 1. This work is licensed under the Apache 2.0 License Camp Composed Session 2 September 27th
  • 2. This work is licensed under the Apache 2.0 License Navaneeth K U GDSC CCE App Development Lead Session Lead
  • 3. This work is licensed under the Apache 2.0 License Welcome App Developers!
  • 4. This work is licensed under the Apache 2.0 License Android Studio Steps to Install Installing Android Studio
  • 5. First App This work is licensed under the Apache 2.0 License
  • 6. This work is licensed under the Apache 2.0 License Android Studio Steps to Install First App
  • 7. This work is licensed under the Apache 2.0 License
  • 8. This work is licensed under the Apache 2.0 License The onCreate() function is the entry point to this app and calls other functions to build the user interface. In Kotlin programs, the main() function is the specific place in your code where the Kotlin compiler starts. In Android apps, the onCreate() function fills that role. onCreate() function
  • 9. This work is licensed under the Apache 2.0 License The setContent() function within the onCreate() function is used to define your layout through composable functions. All functions marked with the @Composable annotation can be called from the setContent() function or from other Composable functions. The annotation tells the Kotlin compiler that this function is used by Jetpack Compose to generate the UI setContent()
  • 10. This work is licensed under the Apache 2.0 License The scalable pixels (SP) is a unit of measure for the font size. UI elements in Android apps use two different units of measurement: density- independent pixels (DP), which you use later for the layout, and scalable pixels (SP). By default, the SP unit is the same size as the DP unit, but it resizes based on the user's preferred text size under phone settings. Units
  • 11. This work is licensed under the Apache 2.0 License sp (Scaleable Pixels OR scale-independent pixels) — this is like the dp unit, but it is also scaled by the user’s font size preference. It is recommended you use this unit when specifying font sizes, so they will be adjusted for both the screen density and user’s preference. Note, the Android documentation is inconsistent on what sp actually stands for, one doc says “scale-independent pixels”, the other says “scaleable pixels”.
  • 12. This work is licensed under the Apache 2.0 License To create a new project: Open Android Studio, click New Project > Empty Compose Activity > Next, enter a name for your project and then configure its settings. To see how your app looks, use the Preview pane. Composable functions are like regular functions with a few differences: functions names are capitalized, you add the @Composable annotation before the function, @Composable functions can't return anything. A Modifier is used to augment or decorate your composable. Summary of First App
  • 13. This work is licensed under the Apache 2.0 License Follow Along  GreetingCard App
  • 14. This work is licensed under the Apache 2.0 License THANK YOU!