SlideShare a Scribd company logo
1 of 1
Download to read offline
Complete the MainActivity kt and MyAdapter kt code given below. Use the same id given in the
umb file overxide fun oncreateviewHotder (porent: Viewsroup, vientype: incri Wiviewtolder i
override fun getitemCount(): overxide fun onBindViewHolder (holder: MyViewHoldor,
positions Int) I Q1ass MainActivity : AppCompatActivity() ( "piano", "Violin", "Guitax",
"Mandolin") val inatrumenta " i.istof ("Trumpet", "Piano", "Yiolin", "Guitax", "Mandolin",
"Magenta", "Black", "Blue") val countries = Iistot' "Saudi Arabia", "Bahrain'" "'und ( overxide
fun oncreate (oavedinstancestate: super.micteate (savedmbtancestater matin) val btnhoadcats
Button = findVlewById (R. id, bentuadcac) btnioadcat. getonc1ickbistener ( loadcategory () )
private fun loadCategory()

More Related Content

More from sattarali527

COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE E.pdf
 COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE E.pdf COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE E.pdf
COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE E.pdfsattarali527
 
Compuse the cash paybock periad for DO ITt 12.1 (LO 1), AP Wayne Com.pdf
 Compuse the cash paybock periad for  DO ITt 12.1 (LO 1), AP Wayne Com.pdf Compuse the cash paybock periad for  DO ITt 12.1 (LO 1), AP Wayne Com.pdf
Compuse the cash paybock periad for DO ITt 12.1 (LO 1), AP Wayne Com.pdfsattarali527
 
Complete the following probability distribution table and then calcul.pdf
 Complete the following probability distribution table and then calcul.pdf Complete the following probability distribution table and then calcul.pdf
Complete the following probability distribution table and then calcul.pdfsattarali527
 
Complete la tabla marcando () la columna correcta para cada afirma.pdf
 Complete la tabla marcando () la columna correcta para cada afirma.pdf Complete la tabla marcando () la columna correcta para cada afirma.pdf
Complete la tabla marcando () la columna correcta para cada afirma.pdfsattarali527
 
Compare and contrast the changing roles of gametophytes and sporophyt.pdf
 Compare and contrast the changing roles of gametophytes and sporophyt.pdf Compare and contrast the changing roles of gametophytes and sporophyt.pdf
Compare and contrast the changing roles of gametophytes and sporophyt.pdfsattarali527
 
Choose the climate forcings or feedbacks that cause climate anomalies.pdf
 Choose the climate forcings or feedbacks that cause climate anomalies.pdf Choose the climate forcings or feedbacks that cause climate anomalies.pdf
Choose the climate forcings or feedbacks that cause climate anomalies.pdfsattarali527
 
Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
 Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdfsattarali527
 
Chose the answer that best describes the DNA genome replication mecha.pdf
 Chose the answer that best describes the DNA genome replication mecha.pdf Chose the answer that best describes the DNA genome replication mecha.pdf
Chose the answer that best describes the DNA genome replication mecha.pdfsattarali527
 
Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
 Choose ALL the statements which are FALSE about DNA replication. a. O.pdf Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
Choose ALL the statements which are FALSE about DNA replication. a. O.pdfsattarali527
 
Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
 Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdfsattarali527
 
Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
 Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdfsattarali527
 
Choose best statement that describe this group of zooplanktonThese.pdf
 Choose best statement that describe this group of zooplanktonThese.pdf Choose best statement that describe this group of zooplanktonThese.pdf
Choose best statement that describe this group of zooplanktonThese.pdfsattarali527
 
Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf
 Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf
Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdfsattarali527
 
Choose one electoral system for Lower House elections that is most po.pdf
 Choose one electoral system for Lower House elections that is most po.pdf Choose one electoral system for Lower House elections that is most po.pdf
Choose one electoral system for Lower House elections that is most po.pdfsattarali527
 
Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf
 Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf
Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdfsattarali527
 
Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf
 Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf
Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdfsattarali527
 
Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf
 Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf
Charity Event Participants There are 16 seniors and 20 juniors in a p.pdfsattarali527
 
Cell D5 contains a value that is used by other cells on the workshe.pdf
 Cell D5 contains a value that is used by other cells on the workshe.pdf Cell D5 contains a value that is used by other cells on the workshe.pdf
Cell D5 contains a value that is used by other cells on the workshe.pdfsattarali527
 
causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf
 causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf
causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdfsattarali527
 
Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf
 Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf
Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdfsattarali527
 

More from sattarali527 (20)

COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE E.pdf
 COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE E.pdf COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE E.pdf
COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE E.pdf
 
Compuse the cash paybock periad for DO ITt 12.1 (LO 1), AP Wayne Com.pdf
 Compuse the cash paybock periad for  DO ITt 12.1 (LO 1), AP Wayne Com.pdf Compuse the cash paybock periad for  DO ITt 12.1 (LO 1), AP Wayne Com.pdf
Compuse the cash paybock periad for DO ITt 12.1 (LO 1), AP Wayne Com.pdf
 
Complete the following probability distribution table and then calcul.pdf
 Complete the following probability distribution table and then calcul.pdf Complete the following probability distribution table and then calcul.pdf
Complete the following probability distribution table and then calcul.pdf
 
Complete la tabla marcando () la columna correcta para cada afirma.pdf
 Complete la tabla marcando () la columna correcta para cada afirma.pdf Complete la tabla marcando () la columna correcta para cada afirma.pdf
Complete la tabla marcando () la columna correcta para cada afirma.pdf
 
Compare and contrast the changing roles of gametophytes and sporophyt.pdf
 Compare and contrast the changing roles of gametophytes and sporophyt.pdf Compare and contrast the changing roles of gametophytes and sporophyt.pdf
Compare and contrast the changing roles of gametophytes and sporophyt.pdf
 
Choose the climate forcings or feedbacks that cause climate anomalies.pdf
 Choose the climate forcings or feedbacks that cause climate anomalies.pdf Choose the climate forcings or feedbacks that cause climate anomalies.pdf
Choose the climate forcings or feedbacks that cause climate anomalies.pdf
 
Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
 Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
Comparative balance sheets for Softech Canvas Goods for 2021 and 2020.pdf
 
Chose the answer that best describes the DNA genome replication mecha.pdf
 Chose the answer that best describes the DNA genome replication mecha.pdf Chose the answer that best describes the DNA genome replication mecha.pdf
Chose the answer that best describes the DNA genome replication mecha.pdf
 
Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
 Choose ALL the statements which are FALSE about DNA replication. a. O.pdf Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
Choose ALL the statements which are FALSE about DNA replication. a. O.pdf
 
Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
 Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
Claim Fewer than 94 of adults have a cell phone. In a reputable pol.pdf
 
Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
 Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
Cick the icon to vew ino dsta the a) Find a 954 confidence interval f.pdf
 
Choose best statement that describe this group of zooplanktonThese.pdf
 Choose best statement that describe this group of zooplanktonThese.pdf Choose best statement that describe this group of zooplanktonThese.pdf
Choose best statement that describe this group of zooplanktonThese.pdf
 
Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf
 Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf
Climbing a Rope A person is climbing a rope in a gymnasium. Heshe wi.pdf
 
Choose one electoral system for Lower House elections that is most po.pdf
 Choose one electoral system for Lower House elections that is most po.pdf Choose one electoral system for Lower House elections that is most po.pdf
Choose one electoral system for Lower House elections that is most po.pdf
 
Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf
 Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf
Chapter 8 Writing Assignment Choose one of the cloud computing meth.pdf
 
Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf
 Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf
Chapter 4 Carbon and the Diversity of Life - Understand the role of .pdf
 
Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf
 Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf
Charity Event Participants There are 16 seniors and 20 juniors in a p.pdf
 
Cell D5 contains a value that is used by other cells on the workshe.pdf
 Cell D5 contains a value that is used by other cells on the workshe.pdf Cell D5 contains a value that is used by other cells on the workshe.pdf
Cell D5 contains a value that is used by other cells on the workshe.pdf
 
causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf
 causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf
causes a dicht hulge in the vessel. Thit is what is feit wheo an arte.pdf
 
Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf
 Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf
Case Study, Chapter 54, Assessment and Management of Patients Who Are.pdf
 

Recently uploaded

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
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
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
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
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
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🔝
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).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🔝
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
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
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Complete the MainActivity kt and MyAdapter kt code given below. Use t.pdf

  • 1. Complete the MainActivity kt and MyAdapter kt code given below. Use the same id given in the umb file overxide fun oncreateviewHotder (porent: Viewsroup, vientype: incri Wiviewtolder i override fun getitemCount(): overxide fun onBindViewHolder (holder: MyViewHoldor, positions Int) I Q1ass MainActivity : AppCompatActivity() ( "piano", "Violin", "Guitax", "Mandolin") val inatrumenta " i.istof ("Trumpet", "Piano", "Yiolin", "Guitax", "Mandolin", "Magenta", "Black", "Blue") val countries = Iistot' "Saudi Arabia", "Bahrain'" "'und ( overxide fun oncreate (oavedinstancestate: super.micteate (savedmbtancestater matin) val btnhoadcats Button = findVlewById (R. id, bentuadcac) btnioadcat. getonc1ickbistener ( loadcategory () ) private fun loadCategory()