2. Become an Android Developer
Session - 3: RecyclerView and Navigation
5/1/2022
2:00 PM - 1:00PM IST
GDSC DYPIU
Host: Atharv Karbhari
3. Topics:
● Adapter, Recycle View
● Navigation between pages
● Intents - Explicit Vs Implicit
● Project Demo: RecyclerView
● REST Apis, Server Requests and Codes
● App Submission Guidelines Revisited
4. Adapter: Recycler View
Recycler View: A viewgroup that holds views corresponding to your data and displays
them in a recyclable fashion.
Components of a RecyclerView:
1, DataSource:
Array of similar data items
2. LayoutManager:
Responsible for arranging the views in a specific manner
3. Adapter:
Helps in binding data to views
- View Holder: Initialize views from single-item xml file
5. Adapter: Recycler View
Recycler View: A viewgroup that holds views corresponding to your data and displays them in a recyclable
fashion.
7. Project Demo - 1
RecyclerView
Making a scrollable RecyclerView
8. Intents: Explicit Vs Implicit
Explicit intents specify which application will satisfy the intent, by supplying either the
target app's package name or a fully-qualified component class name. You'll typically use
an explicit intent to start a component in your own app, because you know the class name
of the activity or service you want to start. For example, you might start a new activity
within your app in response to a user action, or start a service to download a file in the
background.
Implicit intents do not name a specific component, but instead declare a general action
to perform, which allows a component from another app to handle it. For example, if you
want to show the user a location on a map, you can use an implicit intent to request that
another capable app show a specified location on a map.
9. Intents: Explicit Vs Implicit
Declaring an Explicit intent:
myIntent:Intent = Intent(this, activity1::class.java)
Trigger the intent:
startActivity(myIntent)
Add argumetns:
myIntent.also {
it.putExtra("atharv", "smart")
}
}
11. REST APIS and Protocol
Terminologies:
HTTP: Hypertext Transfer Protocol
Communication protocol used in client and server communication
Types of HTTP Requests:
1. GET
2. POST
3. PUT
4. UPDATE
5. DELETE
12. REST APIS and Protocol
Properties of a RESTful
Service
1. Client Server
architecture
2. Resources exposed
as URI
3. Uniform Interface