{"action":"created","comment":{"url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/comments/223220660","pull_request_review_id":162297249,"id":223220660,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzIyMDY2MA==","diff_hunk":"@@ -1,13 +1,50 @@\n package com.homework.hometask1;\n \n+import android.content.Intent;\n import android.support.v7.app.AppCompatActivity;\n import android.os.Bundle;\n+import android.support.v7.widget.LinearLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n+\n+import java.util.ArrayList;\n \n public class MainActivity extends AppCompatActivity {\n \n+    private RecyclerView recyclerView;\n+    private PlanetsAdapter adapter;\n+    private RecyclerView.LayoutManager layoutManager;\n+    private ArrayList<PlanetItem> planetList;\n+\n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_main);\n+        createPlanets();\n+\n+        recyclerView = findViewById(R.id.rv_planets);\n+        recyclerView.setHasFixedSize(true);\n+        layoutManager = new LinearLayoutManager(this);\n+        adapter = new PlanetsAdapter(planetList);\n+        recyclerView.setLayoutManager(layoutManager);\n+        recyclerView.setAdapter(adapter);\n+\n+        adapter.setOnItemClickListener(new PlanetsAdapter.OnItemClickListener() {\n+            @Override\n+            public void onItemClick(int position) {\n+                Intent intent = new Intent(MainActivity.this, InfoActivity.class);\n+                intent.putExtra(\"Planet item\", planetList.get(position));\n+                startActivity(intent);\n+            }\n+        });\n+    }\n+\n+    private void createPlanets(){\n+        planetList = new ArrayList<>();\n+        planetList.add(new PlanetItem(R.drawable.mercury, \"Меркурий\", R.string.merc_descrp));\n+        planetList.add(new PlanetItem(R.drawable.venus, \"Венера\", R.string.venus_descrp));\n+        planetList.add(new PlanetItem(R.drawable.earth, \"Земля\", R.string.earth_descrp));\n+        planetList.add(new PlanetItem(R.drawable.mars, \"Марс\", R.string.mars_descrp));\n+        planetList.add(new PlanetItem(R.drawable.jupiter, \"Юпитер\", R.string.jupiter_descrp));\n+        planetList.add(new PlanetItem(R.drawable.saturn, \"Сатурн\", R.string.saturn_descrp));","path":"app/src/main/java/com/homework/hometask1/MainActivity.java","position":48,"original_position":48,"commit_id":"3b377b37dde6b295efacbbb01c7128c900bf9469","original_commit_id":"3b377b37dde6b295efacbbb01c7128c900bf9469","user":{"login":"NailShaykhrazievItis","id":36369179,"node_id":"MDQ6VXNlcjM2MzY5MTc5","avatar_url":"https://avatars0.githubusercontent.com/u/36369179?v=4","gravatar_id":"","url":"https://api.github.com/users/NailShaykhrazievItis","html_url":"https://github.com/NailShaykhrazievItis","followers_url":"https://api.github.com/users/NailShaykhrazievItis/followers","following_url":"https://api.github.com/users/NailShaykhrazievItis/following{/other_user}","gists_url":"https://api.github.com/users/NailShaykhrazievItis/gists{/gist_id}","starred_url":"https://api.github.com/users/NailShaykhrazievItis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NailShaykhrazievItis/subscriptions","organizations_url":"https://api.github.com/users/NailShaykhrazievItis/orgs","repos_url":"https://api.github.com/users/NailShaykhrazievItis/repos","events_url":"https://api.github.com/users/NailShaykhrazievItis/events{/privacy}","received_events_url":"https://api.github.com/users/NailShaykhrazievItis/received_events","type":"User","site_admin":false},"body":"А как же Нептун и Уран. Я молчу про систему Плутон-Харон еще.  Хотя последнее и лишнее","created_at":"2018-10-07T17:04:02Z","updated_at":"2018-10-07T17:06:32Z","html_url":"https://github.com/Ramiz713/androidHometask/pull/4#discussion_r223220660","pull_request_url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/comments/223220660"},"html":{"href":"https://github.com/Ramiz713/androidHometask/pull/4#discussion_r223220660"},"pull_request":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4","id":220958723,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwOTU4NzIz","html_url":"https://github.com/Ramiz713/androidHometask/pull/4","diff_url":"https://github.com/Ramiz713/androidHometask/pull/4.diff","patch_url":"https://github.com/Ramiz713/androidHometask/pull/4.patch","issue_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues/4","number":4,"state":"open","locked":false,"title":"Task/homework4","user":{"login":"Ramiz713","id":41049352,"node_id":"MDQ6VXNlcjQxMDQ5MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/41049352?v=4","gravatar_id":"","url":"https://api.github.com/users/Ramiz713","html_url":"https://github.com/Ramiz713","followers_url":"https://api.github.com/users/Ramiz713/followers","following_url":"https://api.github.com/users/Ramiz713/following{/other_user}","gists_url":"https://api.github.com/users/Ramiz713/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramiz713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramiz713/subscriptions","organizations_url":"https://api.github.com/users/Ramiz713/orgs","repos_url":"https://api.github.com/users/Ramiz713/repos","events_url":"https://api.github.com/users/Ramiz713/events{/privacy}","received_events_url":"https://api.github.com/users/Ramiz713/received_events","type":"User","site_admin":false},"body":"![screenshot_2018-10-07-19-35-22-450_com homework hometask1](https://user-images.githubusercontent.com/41049352/46584151-6eda2600-ca68-11e8-8ccc-9148f0ebce2e.png)\r\n![screenshot_2018-10-07-19-35-26-468_com homework hometask1](https://user-images.githubusercontent.com/41049352/46584157-73064380-ca68-11e8-8bef-9e19ecd237bb.png)\r\n![screenshot_2018-10-07-19-35-40-178_com homework hometask1](https://user-images.githubusercontent.com/41049352/46584159-76013400-ca68-11e8-8210-2f2d1d80a052.png)\r\n","created_at":"2018-10-07T16:38:37Z","updated_at":"2018-10-07T17:06:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"668a50bac9ebc65d1e8863df71e1c0a297d2f16c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues/4/comments","statuses_url":"https://api.github.com/repos/Ramiz713/androidHometask/statuses/3b377b37dde6b295efacbbb01c7128c900bf9469","head":{"label":"Ramiz713:task/homework4","ref":"task/homework4","sha":"3b377b37dde6b295efacbbb01c7128c900bf9469","user":{"login":"Ramiz713","id":41049352,"node_id":"MDQ6VXNlcjQxMDQ5MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/41049352?v=4","gravatar_id":"","url":"https://api.github.com/users/Ramiz713","html_url":"https://github.com/Ramiz713","followers_url":"https://api.github.com/users/Ramiz713/followers","following_url":"https://api.github.com/users/Ramiz713/following{/other_user}","gists_url":"https://api.github.com/users/Ramiz713/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramiz713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramiz713/subscriptions","organizations_url":"https://api.github.com/users/Ramiz713/orgs","repos_url":"https://api.github.com/users/Ramiz713/repos","events_url":"https://api.github.com/users/Ramiz713/events{/privacy}","received_events_url":"https://api.github.com/users/Ramiz713/received_events","type":"User","site_admin":false},"repo":{"id":148996356,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg5OTYzNTY=","name":"androidHometask","full_name":"Ramiz713/androidHometask","private":false,"owner":{"login":"Ramiz713","id":41049352,"node_id":"MDQ6VXNlcjQxMDQ5MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/41049352?v=4","gravatar_id":"","url":"https://api.github.com/users/Ramiz713","html_url":"https://github.com/Ramiz713","followers_url":"https://api.github.com/users/Ramiz713/followers","following_url":"https://api.github.com/users/Ramiz713/following{/other_user}","gists_url":"https://api.github.com/users/Ramiz713/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramiz713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramiz713/subscriptions","organizations_url":"https://api.github.com/users/Ramiz713/orgs","repos_url":"https://api.github.com/users/Ramiz713/repos","events_url":"https://api.github.com/users/Ramiz713/events{/privacy}","received_events_url":"https://api.github.com/users/Ramiz713/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Ramiz713/androidHometask","description":null,"fork":false,"url":"https://api.github.com/repos/Ramiz713/androidHometask","forks_url":"https://api.github.com/repos/Ramiz713/androidHometask/forks","keys_url":"https://api.github.com/repos/Ramiz713/androidHometask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ramiz713/androidHometask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ramiz713/androidHometask/teams","hooks_url":"https://api.github.com/repos/Ramiz713/androidHometask/hooks","issue_events_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues/events{/number}","events_url":"https://api.github.com/repos/Ramiz713/androidHometask/events","assignees_url":"https://api.github.com/repos/Ramiz713/androidHometask/assignees{/user}","branches_url":"https://api.github.com/repos/Ramiz713/androidHometask/branches{/branch}","tags_url":"https://api.github.com/repos/Ramiz713/androidHometask/tags","blobs_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ramiz713/androidHometask/statuses/{sha}","languages_url":"https://api.github.com/repos/Ramiz713/androidHometask/languages","stargazers_url":"https://api.github.com/repos/Ramiz713/androidHometask/stargazers","contributors_url":"https://api.github.com/repos/Ramiz713/androidHometask/contributors","subscribers_url":"https://api.github.com/repos/Ramiz713/androidHometask/subscribers","subscription_url":"https://api.github.com/repos/Ramiz713/androidHometask/subscription","commits_url":"https://api.github.com/repos/Ramiz713/androidHometask/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ramiz713/androidHometask/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ramiz713/androidHometask/contents/{+path}","compare_url":"https://api.github.com/repos/Ramiz713/androidHometask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ramiz713/androidHometask/merges","archive_url":"https://api.github.com/repos/Ramiz713/androidHometask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ramiz713/androidHometask/downloads","issues_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues{/number}","pulls_url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls{/number}","milestones_url":"https://api.github.com/repos/Ramiz713/androidHometask/milestones{/number}","notifications_url":"https://api.github.com/repos/Ramiz713/androidHometask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ramiz713/androidHometask/labels{/name}","releases_url":"https://api.github.com/repos/Ramiz713/androidHometask/releases{/id}","deployments_url":"https://api.github.com/repos/Ramiz713/androidHometask/deployments","created_at":"2018-09-16T13:03:44Z","updated_at":"2018-09-16T13:17:11Z","pushed_at":"2018-10-07T16:38:38Z","git_url":"git://github.com/Ramiz713/androidHometask.git","ssh_url":"git@github.com:Ramiz713/androidHometask.git","clone_url":"https://github.com/Ramiz713/androidHometask.git","svn_url":"https://github.com/Ramiz713/androidHometask","homepage":null,"size":491,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Ramiz713:master","ref":"master","sha":"81bbe6e77cca680678fb6d4147da07d2ca9becc9","user":{"login":"Ramiz713","id":41049352,"node_id":"MDQ6VXNlcjQxMDQ5MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/41049352?v=4","gravatar_id":"","url":"https://api.github.com/users/Ramiz713","html_url":"https://github.com/Ramiz713","followers_url":"https://api.github.com/users/Ramiz713/followers","following_url":"https://api.github.com/users/Ramiz713/following{/other_user}","gists_url":"https://api.github.com/users/Ramiz713/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramiz713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramiz713/subscriptions","organizations_url":"https://api.github.com/users/Ramiz713/orgs","repos_url":"https://api.github.com/users/Ramiz713/repos","events_url":"https://api.github.com/users/Ramiz713/events{/privacy}","received_events_url":"https://api.github.com/users/Ramiz713/received_events","type":"User","site_admin":false},"repo":{"id":148996356,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg5OTYzNTY=","name":"androidHometask","full_name":"Ramiz713/androidHometask","private":false,"owner":{"login":"Ramiz713","id":41049352,"node_id":"MDQ6VXNlcjQxMDQ5MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/41049352?v=4","gravatar_id":"","url":"https://api.github.com/users/Ramiz713","html_url":"https://github.com/Ramiz713","followers_url":"https://api.github.com/users/Ramiz713/followers","following_url":"https://api.github.com/users/Ramiz713/following{/other_user}","gists_url":"https://api.github.com/users/Ramiz713/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramiz713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramiz713/subscriptions","organizations_url":"https://api.github.com/users/Ramiz713/orgs","repos_url":"https://api.github.com/users/Ramiz713/repos","events_url":"https://api.github.com/users/Ramiz713/events{/privacy}","received_events_url":"https://api.github.com/users/Ramiz713/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Ramiz713/androidHometask","description":null,"fork":false,"url":"https://api.github.com/repos/Ramiz713/androidHometask","forks_url":"https://api.github.com/repos/Ramiz713/androidHometask/forks","keys_url":"https://api.github.com/repos/Ramiz713/androidHometask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ramiz713/androidHometask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ramiz713/androidHometask/teams","hooks_url":"https://api.github.com/repos/Ramiz713/androidHometask/hooks","issue_events_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues/events{/number}","events_url":"https://api.github.com/repos/Ramiz713/androidHometask/events","assignees_url":"https://api.github.com/repos/Ramiz713/androidHometask/assignees{/user}","branches_url":"https://api.github.com/repos/Ramiz713/androidHometask/branches{/branch}","tags_url":"https://api.github.com/repos/Ramiz713/androidHometask/tags","blobs_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ramiz713/androidHometask/statuses/{sha}","languages_url":"https://api.github.com/repos/Ramiz713/androidHometask/languages","stargazers_url":"https://api.github.com/repos/Ramiz713/androidHometask/stargazers","contributors_url":"https://api.github.com/repos/Ramiz713/androidHometask/contributors","subscribers_url":"https://api.github.com/repos/Ramiz713/androidHometask/subscribers","subscription_url":"https://api.github.com/repos/Ramiz713/androidHometask/subscription","commits_url":"https://api.github.com/repos/Ramiz713/androidHometask/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ramiz713/androidHometask/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ramiz713/androidHometask/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ramiz713/androidHometask/contents/{+path}","compare_url":"https://api.github.com/repos/Ramiz713/androidHometask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ramiz713/androidHometask/merges","archive_url":"https://api.github.com/repos/Ramiz713/androidHometask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ramiz713/androidHometask/downloads","issues_url":"https://api.github.com/repos/Ramiz713/androidHometask/issues{/number}","pulls_url":"https://api.github.com/repos/Ramiz713/androidHometask/pulls{/number}","milestones_url":"https://api.github.com/repos/Ramiz713/androidHometask/milestones{/number}","notifications_url":"https://api.github.com/repos/Ramiz713/androidHometask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ramiz713/androidHometask/labels{/name}","releases_url":"https://api.github.com/repos/Ramiz713/androidHometask/releases{/id}","deployments_url":"https://api.github.com/repos/Ramiz713/androidHometask/deployments","created_at":"2018-09-16T13:03:44Z","updated_at":"2018-09-16T13:17:11Z","pushed_at":"2018-10-07T16:38:38Z","git_url":"git://github.com/Ramiz713/androidHometask.git","ssh_url":"git@github.com:Ramiz713/androidHometask.git","clone_url":"https://github.com/Ramiz713/androidHometask.git","svn_url":"https://github.com/Ramiz713/androidHometask","homepage":null,"size":491,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4"},"html":{"href":"https://github.com/Ramiz713/androidHometask/pull/4"},"issue":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/issues/4"},"comments":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Ramiz713/androidHometask/statuses/3b377b37dde6b295efacbbb01c7128c900bf9469"}},"author_association":"OWNER"}}
{"actor":{"display_login":"NailShaykhrazievItis"}}