android-training-workshop
Resource for android training workshop.
Workshop 1
- Create
ImageView
id@+id/photo_image
- Copy image file to
drawable
directory and set image - Create
TextView
id@+id/title_text
and set text - Create
TextView
id@+id/subtitle_text
and set text - Create
EditText
id@+id/message_input
and set hint - Create
Button
id@+id/send_message_button
and set text - Connect reference views in
MainActivity
. - Copy other image set to
ImageView
. - Set
TextView
s. - Set click event for
Button
. - Get text from
EditText
to show message popup. - Add
RelativeLayout
. - Align views in
RelativeLayout
. - Create new
Activity
nameSecondActivity
. - Open
AndroidManifest.xml
set parent activity forSecondActivity
. - Create
Intent
and send message toSecondActivity
. - Get intent data in
SecondActivity
. - Add
TextView
id@+id/message_text
. - Set receive message to
TextView
. - Add
Logging
. - Add
Breakpoint
and run in debug mode. - Complete workshop1.
Workshop 2
- Build Simple Toast.
- Build Align Toast.
- Build Custom Toast.
- Build Simple Dialog.
- Build Simple Dialog.
- Build Progress Dialog.
- Build List Dialog.
- Build Single Choice Dialog.
- Build Multiple Choices Dialog.
- Build Date Picker Dialog.
- Build Custom Content Dialog.
Workshop 3
MainActivity.java
Delete hardcore codingactivity_main.xml
Delete hardcore layoutbuild.gradle
Add RecyclerView compileactivity_main.xml
Insert RecyclerViewMainActivity.java
Get RecyclerViewMainActivity.java
Set layout managerPlaceAdapter.java
Make PlaceAdapter is subclass of RecyclerView.AdapterPlaceAdapter.java
Create constructorPlaceAdapter.java
Create view for row from layoutPlaceViewHolder.java
Make PlaceViewHolder is subclass of RecyclerView.ViewHolderPlaceViewHolder.java
Create fieldsPlaceViewHolder.java
Get view fromadapter_place
layoutPlaceAdapter.java
Return number of rows in RecyclerViewMainActivity.java
Set adapterPlaceAdapter.java
Bind viewPlaceAdapter.java
Pass dataPlaceAdapter.java
Pass Parcel objectPlace.java
Implement ParcelableDetailActivity.java
Get parcel object from intentDetailActivity.java
Bind views with place objectactivity_detail.xml
Wrap entry content with ScrollView