package com.example.android.androidsimulator;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

@@ -40,16 +40,44 @@
 lator;%0A%0A
+import android.media.Image;%0A
 import a
@@ -142,16 +142,75 @@
 .Bundle;
+%0Aimport android.view.View;%0Aimport android.widget.ImageView;
 %0A%0Apublic
@@ -258,16 +258,98 @@
 vity %7B%0A%0A
+    ImageView messagesImg;%0A    ImageView contactsImg;%0A    ImageView settingsImg;%0A%0A
     @Ove
@@ -502,16 +502,849 @@
 y_main);
+%0A%0A        messagesImg = (ImageView) findViewById(R.id.img_messages);%0A        contactsImg = (ImageView) findViewById(R.id.img_contacts);%0A        settingsImg = (ImageView) findViewById(R.id.img_settings);%0A%0A        // set OnClickListener%0A        setEvents();%0A%0A    %7D%0A%0A    private void setEvents() %7B%0A        // messages%0A        messagesImg.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A%0A            %7D%0A        %7D);%0A%0A        // contacts%0A        contactsImg.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A%0A            %7D%0A        %7D);%0A%0A        // settings%0A        settingsImg.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A%0A            %7D%0A        %7D);
 %0A    %7D%0A%7D

Add ClickListener of icons from MainActivity