SlideShare a Scribd company logo
1 of 36
This work is licensed under the Apache 2.0 License
Welcome back
This work is licensed under the Apache 2.0 License
 Quick Recap
 Object creation Post and Story
 Single Post & Single Story
 List of Post and Story
 Result
 Q&A
Day 3 Agenda
This work is licensed under the Apache 2.0 License
Recap 😑
 Text, Image, Button
 Modifier
 Standard layout
 Lazy Layout
 OOPs
This work is licensed under the Apache 2.0 License
? + Answer =
This work is licensed under the Apache 2.0 License
Aim
This work is licensed under the Apache 2.0 License
data class Person(
val name : String,
var age : Int
)
Data class
This work is licensed under the Apache 2.0 License
val list = arrayListOf (
person1,
person2
)
List of Person
This work is licensed under the Apache 2.0 License
?
Post Attribute
This work is licensed under the Apache 2.0 License
Post Attribute
Id
authorImage
postImage
likeCount
authorName
caption
This work is licensed under the Apache 2.0 License
Post Data Class
Id
authorImage
postImage
likeCount
authorName
caption
data class Post(
val id : Int,
var likeCount : Int,
val postImageId : Int,
val authorImage : Int,
val authorName : String,
val description : String
)
This work is licensed under the Apache 2.0 License
?
Story Attribute
This work is licensed under the Apache 2.0 License
Story Attribute
Id
storyImage
authorName
This work is licensed under the Apache 2.0 License
Post Data Class
data class Story(
val id:Int,
val storyImage:Int,
val
authorName:String
)
Id
storyImage
authorName
This work is licensed under the Apache 2.0 License
Post analysis 1
This work is licensed under the Apache 2.0 License
Post analysis 1.2
?
This work is licensed under the Apache 2.0 License
Post analysis 1.2
Row
{
Image()
Text()
Image()
}
This work is licensed under the Apache 2.0 License
Post analysis 1.3
?
This work is licensed under the Apache 2.0 License
Post analysis 1.3
Column
{
Row{
Image()
Text()
Image()
}
Image()
}
This work is licensed under the Apache 2.0 License
Post analysis 1.4
?
This work is licensed under the Apache 2.0 License
Post analysis 1.4
Row{
Image()
Image()
Image()
Image()
}
This work is licensed under the Apache 2.0 License
Post analysis 1.4
Column{
Row{
Image()
Text()
Image()
}
Image()
Row{
Image()
Image()
Image()
Image()
}
}
This work is licensed under the Apache 2.0 License
Story analysis 2.0
?
This work is licensed under the Apache 2.0 License
Post analysis 1.4
Column{
Image()
Text()
}
This work is licensed under the Apache 2.0 License
1) NewPost.kt
NewPost(){}
2) NewStory.kt
NewStory(){}
Lets create file and compose function for
single post and story
This work is licensed under the Apache 2.0 License
Lets talk about Post first fun NewPost(){
Column{
Row{
Image()
Text()
Image()
}
Image()
Row{
Image()
Image()
Image()
Image()
}
}
}
This work is licensed under the Apache 2.0 License
Lets talk about Post first fun NewPost (post : Post) {
Column{
Row{
Image()
Text()
Image()
}
Image()
Row{
Image()
Image()
Image()
Image()
}
}
}
This work is licensed under the Apache 2.0 License
Now Story
fun NewStory (story : Story)
{
Column{
Image()
Text()
}
}
This work is licensed under the Apache 2.0 License
Now we do have a function which create a
single story and Post
But how to do it for multiple story and post
😶😶
This work is licensed under the Apache 2.0 License
Lets create function to hold list of post and
create UI
This work is licensed under the Apache 2.0 License
InstagramStory () ----> StoryDesign(list)
@Composable
fun InstagramStory(){
val storyList = arrayListOf(
Story(1,R.drawable.user_image,"name"),
Story(1,R.drawable.user_image,"name"),
Story(1,R.drawable.user_image,"name")
)
StoryDesign(storyList = storyList)🙄🙄
}
@Composable
fun
StoryDesign(storyList:ArrayList<Story>){
LazyRow{
items(storyList){
NewStory(it)
}
}
}
This work is licensed under the Apache 2.0 License
What if we call InstagramStory()
?
😑😑
This work is licensed under the Apache 2.0 License
What if we call InstagramStory()
This work is licensed under the Apache 2.0 License
InstagramFeed () ----> Design(list)
@Composable
fun InstagramFeed(){
val postList = arrayListOf(
Post( 1, 223, R.drawable.post, R.drawable.post, "Rohit", "Hello"),
Post( 1, 223, R.drawable.post, R.drawable.post, "Rohit", "Hello")
)
Design(postList = postList) /* now u know it ?*/
}
This work is licensed under the Apache 2.0 License
InstagramFeed () ----> Design(list)
@Composable
fun Design(postList: ArrayList<Post>){
LazyColumn{
item{
InstagramStory()
}
item{
Spacer(modifier =
Modifier.width(8.dp))
}
items(postList){
NewPost(it)
}
}
}
This work is licensed under the Apache 2.0 License
What if we call InstagramFeed()
This work is licensed under the Apache 2.0 License
Result

More Related Content

Similar to session3.pptx

Compose Camp - Jetpack Compose for Android Developers Introduction Session De...
Compose Camp - Jetpack Compose for Android Developers Introduction Session De...Compose Camp - Jetpack Compose for Android Developers Introduction Session De...
Compose Camp - Jetpack Compose for Android Developers Introduction Session De...JassGroup TICS
 
Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...
Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...
Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...Svetlin Stanchev
 
-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptx-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptxRishiGandhi19
 
Google Solution Challenge Android Awesomeness.pptx
Google Solution Challenge Android Awesomeness.pptxGoogle Solution Challenge Android Awesomeness.pptx
Google Solution Challenge Android Awesomeness.pptxGoogleDeveloperStude22
 
DSC - Android Study Jams - Session 2
DSC - Android Study Jams - Session 2 DSC - Android Study Jams - Session 2
DSC - Android Study Jams - Session 2 vaishnaviayyappan
 
Prior programming experience track
Prior programming experience trackPrior programming experience track
Prior programming experience trackAshwinRaj57
 
Compose Camp S1.pptx
Compose Camp S1.pptxCompose Camp S1.pptx
Compose Camp S1.pptxGDSCSIT
 
Session 1 ppt.pptx
Session 1 ppt.pptxSession 1 ppt.pptx
Session 1 ppt.pptxSumit766160
 
Day3New GDSC.pptx
Day3New GDSC.pptxDay3New GDSC.pptx
Day3New GDSC.pptxGDSCICOER
 
Compose Camp - Unit 1 (1).pptx
Compose Camp - Unit 1 (1).pptxCompose Camp - Unit 1 (1).pptx
Compose Camp - Unit 1 (1).pptxIshwariKulkarni6
 
Android Study Jam 2021 Session 4 slides
Android Study Jam 2021 Session 4 slidesAndroid Study Jam 2021 Session 4 slides
Android Study Jam 2021 Session 4 slidesBoston Android
 

Similar to session3.pptx (20)

Compose Camp - Jetpack Compose for Android Developers Introduction Session De...
Compose Camp - Jetpack Compose for Android Developers Introduction Session De...Compose Camp - Jetpack Compose for Android Developers Introduction Session De...
Compose Camp - Jetpack Compose for Android Developers Introduction Session De...
 
Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...
Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...
Compose Camp - Jetpack Compose for Android Developers _ Introduction Session ...
 
Jetpack Compose Recap Session.pdf
Jetpack Compose Recap Session.pdfJetpack Compose Recap Session.pdf
Jetpack Compose Recap Session.pdf
 
day1.docx
day1.docxday1.docx
day1.docx
 
-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptx-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptx
 
-Kotlin Camp Unit2.pptx
-Kotlin Camp Unit2.pptx-Kotlin Camp Unit2.pptx
-Kotlin Camp Unit2.pptx
 
Google Solution Challenge Android Awesomeness.pptx
Google Solution Challenge Android Awesomeness.pptxGoogle Solution Challenge Android Awesomeness.pptx
Google Solution Challenge Android Awesomeness.pptx
 
Compose 3rd session.pptx
Compose 3rd session.pptxCompose 3rd session.pptx
Compose 3rd session.pptx
 
DSC - Android Study Jams - Session 2
DSC - Android Study Jams - Session 2 DSC - Android Study Jams - Session 2
DSC - Android Study Jams - Session 2
 
Compose Camp Session 1.pdf
Compose Camp Session 1.pdfCompose Camp Session 1.pdf
Compose Camp Session 1.pdf
 
Compose Camp Day 2.pptx
Compose Camp Day 2.pptxCompose Camp Day 2.pptx
Compose Camp Day 2.pptx
 
Prior programming experience track
Prior programming experience trackPrior programming experience track
Prior programming experience track
 
Compose Camp S1.pptx
Compose Camp S1.pptxCompose Camp S1.pptx
Compose Camp S1.pptx
 
Session 1 ppt.pptx
Session 1 ppt.pptxSession 1 ppt.pptx
Session 1 ppt.pptx
 
Day3New GDSC.pptx
Day3New GDSC.pptxDay3New GDSC.pptx
Day3New GDSC.pptx
 
Compose Camp 2.pdf
Compose Camp 2.pdfCompose Camp 2.pdf
Compose Camp 2.pdf
 
Compose Camp.pdf
Compose Camp.pdfCompose Camp.pdf
Compose Camp.pdf
 
Compose Camp - Unit 1 (1).pptx
Compose Camp - Unit 1 (1).pptxCompose Camp - Unit 1 (1).pptx
Compose Camp - Unit 1 (1).pptx
 
Android Study Jam 2021 Session 4 slides
Android Study Jam 2021 Session 4 slidesAndroid Study Jam 2021 Session 4 slides
Android Study Jam 2021 Session 4 slides
 
Php sql-android
Php sql-androidPhp sql-android
Php sql-android
 

More from RamshaAshraf12

Info session of GDSC GHRCEM.pdf
Info session of GDSC GHRCEM.pdfInfo session of GDSC GHRCEM.pdf
Info session of GDSC GHRCEM.pdfRamshaAshraf12
 
GCCP Session #1 - Getting Started with GCP.pptx
GCCP Session #1 - Getting Started with GCP.pptxGCCP Session #1 - Getting Started with GCP.pptx
GCCP Session #1 - Getting Started with GCP.pptxRamshaAshraf12
 

More from RamshaAshraf12 (6)

Info session of GDSC GHRCEM.pdf
Info session of GDSC GHRCEM.pdfInfo session of GDSC GHRCEM.pdf
Info session of GDSC GHRCEM.pdf
 
ML GDSC GHRECM.pptx
ML GDSC GHRECM.pptxML GDSC GHRECM.pptx
ML GDSC GHRECM.pptx
 
GCCP Session #1 - Getting Started with GCP.pptx
GCCP Session #1 - Getting Started with GCP.pptxGCCP Session #1 - Getting Started with GCP.pptx
GCCP Session #1 - Getting Started with GCP.pptx
 
Git + GitHub 1.0.pptx
Git + GitHub 1.0.pptxGit + GitHub 1.0.pptx
Git + GitHub 1.0.pptx
 
Session-1.pptx
Session-1.pptxSession-1.pptx
Session-1.pptx
 
Info session.pptx
Info session.pptxInfo session.pptx
Info session.pptx
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 

session3.pptx

  • 1. This work is licensed under the Apache 2.0 License Welcome back
  • 2. This work is licensed under the Apache 2.0 License  Quick Recap  Object creation Post and Story  Single Post & Single Story  List of Post and Story  Result  Q&A Day 3 Agenda
  • 3. This work is licensed under the Apache 2.0 License Recap 😑  Text, Image, Button  Modifier  Standard layout  Lazy Layout  OOPs
  • 4. This work is licensed under the Apache 2.0 License ? + Answer =
  • 5. This work is licensed under the Apache 2.0 License Aim
  • 6. This work is licensed under the Apache 2.0 License data class Person( val name : String, var age : Int ) Data class
  • 7. This work is licensed under the Apache 2.0 License val list = arrayListOf ( person1, person2 ) List of Person
  • 8. This work is licensed under the Apache 2.0 License ? Post Attribute
  • 9. This work is licensed under the Apache 2.0 License Post Attribute Id authorImage postImage likeCount authorName caption
  • 10. This work is licensed under the Apache 2.0 License Post Data Class Id authorImage postImage likeCount authorName caption data class Post( val id : Int, var likeCount : Int, val postImageId : Int, val authorImage : Int, val authorName : String, val description : String )
  • 11. This work is licensed under the Apache 2.0 License ? Story Attribute
  • 12. This work is licensed under the Apache 2.0 License Story Attribute Id storyImage authorName
  • 13. This work is licensed under the Apache 2.0 License Post Data Class data class Story( val id:Int, val storyImage:Int, val authorName:String ) Id storyImage authorName
  • 14. This work is licensed under the Apache 2.0 License Post analysis 1
  • 15. This work is licensed under the Apache 2.0 License Post analysis 1.2 ?
  • 16. This work is licensed under the Apache 2.0 License Post analysis 1.2 Row { Image() Text() Image() }
  • 17. This work is licensed under the Apache 2.0 License Post analysis 1.3 ?
  • 18. This work is licensed under the Apache 2.0 License Post analysis 1.3 Column { Row{ Image() Text() Image() } Image() }
  • 19. This work is licensed under the Apache 2.0 License Post analysis 1.4 ?
  • 20. This work is licensed under the Apache 2.0 License Post analysis 1.4 Row{ Image() Image() Image() Image() }
  • 21. This work is licensed under the Apache 2.0 License Post analysis 1.4 Column{ Row{ Image() Text() Image() } Image() Row{ Image() Image() Image() Image() } }
  • 22. This work is licensed under the Apache 2.0 License Story analysis 2.0 ?
  • 23. This work is licensed under the Apache 2.0 License Post analysis 1.4 Column{ Image() Text() }
  • 24. This work is licensed under the Apache 2.0 License 1) NewPost.kt NewPost(){} 2) NewStory.kt NewStory(){} Lets create file and compose function for single post and story
  • 25. This work is licensed under the Apache 2.0 License Lets talk about Post first fun NewPost(){ Column{ Row{ Image() Text() Image() } Image() Row{ Image() Image() Image() Image() } } }
  • 26. This work is licensed under the Apache 2.0 License Lets talk about Post first fun NewPost (post : Post) { Column{ Row{ Image() Text() Image() } Image() Row{ Image() Image() Image() Image() } } }
  • 27. This work is licensed under the Apache 2.0 License Now Story fun NewStory (story : Story) { Column{ Image() Text() } }
  • 28. This work is licensed under the Apache 2.0 License Now we do have a function which create a single story and Post But how to do it for multiple story and post 😶😶
  • 29. This work is licensed under the Apache 2.0 License Lets create function to hold list of post and create UI
  • 30. This work is licensed under the Apache 2.0 License InstagramStory () ----> StoryDesign(list) @Composable fun InstagramStory(){ val storyList = arrayListOf( Story(1,R.drawable.user_image,"name"), Story(1,R.drawable.user_image,"name"), Story(1,R.drawable.user_image,"name") ) StoryDesign(storyList = storyList)🙄🙄 } @Composable fun StoryDesign(storyList:ArrayList<Story>){ LazyRow{ items(storyList){ NewStory(it) } } }
  • 31. This work is licensed under the Apache 2.0 License What if we call InstagramStory() ? 😑😑
  • 32. This work is licensed under the Apache 2.0 License What if we call InstagramStory()
  • 33. This work is licensed under the Apache 2.0 License InstagramFeed () ----> Design(list) @Composable fun InstagramFeed(){ val postList = arrayListOf( Post( 1, 223, R.drawable.post, R.drawable.post, "Rohit", "Hello"), Post( 1, 223, R.drawable.post, R.drawable.post, "Rohit", "Hello") ) Design(postList = postList) /* now u know it ?*/ }
  • 34. This work is licensed under the Apache 2.0 License InstagramFeed () ----> Design(list) @Composable fun Design(postList: ArrayList<Post>){ LazyColumn{ item{ InstagramStory() } item{ Spacer(modifier = Modifier.width(8.dp)) } items(postList){ NewPost(it) } } }
  • 35. This work is licensed under the Apache 2.0 License What if we call InstagramFeed()
  • 36. This work is licensed under the Apache 2.0 License Result

Editor's Notes

  1. Does anyone have questions since the last session?
  2. 04.10.2022
  3. When we rebuild, we will see the text “Howdy Android” instead of “Hello Android” in the Design tab.
  4. When we rebuild, we will see the text “Howdy Android” instead of “Hello Android” in the Design tab.
  5. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  6. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  7. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  8. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  9. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  10. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  11. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  12. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  13. My name isn’t Android and I’m guessing yours isn’t either so let’s learn how to update the name passed into the Greeting() function. The DefaultPreview() is where you set what shows up in the Design tab. The FirstComposeProjectTheme sets the styling for the app. See that the Greeting() function is being called and “Android” is passed in.
  14. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  15. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  16. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  17. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  18. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  19. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  20. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  21. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  22. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  23. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  24. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  25. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  26. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  27. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  28. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  29. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  30. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  31. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  32. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  33. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  34. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  35. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.
  36. Now when we refresh we see “Howdy Meghan” displayed in the Design tab. The Design tab is a great way to quickly see how your UI changes but it is not a replacement for testing your app on an emulator or physical device.