{"action":"created","comment":{"url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/comments/124927640","pull_request_review_id":47268146,"id":124927640,"diff_hunk":"@@ -1,70 +1,58 @@\n package com.myst3ry.moneytrackerxe;\n \n import android.os.Bundle;\n+import android.support.design.widget.TabLayout;\n+import android.support.v4.app.Fragment;\n+import android.support.v4.app.FragmentPagerAdapter;\n+import android.support.v4.view.ViewPager;\n+import android.support.v7.app.ActionBar;\n import android.support.v7.app.AppCompatActivity;\n-import android.support.v7.widget.RecyclerView;\n-import android.view.LayoutInflater;\n-import android.view.View;\n-import android.view.ViewGroup;\n-import android.widget.TextView;\n-\n-import java.util.ArrayList;\n-import java.util.List;\n \n public class MainActivity extends AppCompatActivity {\n \n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n-        setContentView(R.layout.items);\n-        final RecyclerView items = (RecyclerView) findViewById(R.id.items);\n-        items.setAdapter(new ItemsAdapter());\n+        setContentView(R.layout.activity_main);\n+        final TabLayout tabs = (TabLayout) findViewById(R.id.main_tabs);\n+        final ViewPager pages = (ViewPager) findViewById(R.id.main_pager);\n+        pages.setAdapter(new MainPagerAdapter());\n+        tabs.setupWithViewPager(pages);\n+        ActionBar mainActBar = getSupportActionBar();\n+        mainActBar.setTitle(getString(R.string.budget_accounting));","path":"app/src/main/java/com/myst3ry/moneytrackerxe/MainActivity.java","position":33,"original_position":33,"commit_id":"ffb649e3e66ae82d2641336b2aa85008e23d7912","original_commit_id":"ffb649e3e66ae82d2641336b2aa85008e23d7912","user":{"login":"shushper","id":6928960,"avatar_url":"https://avatars0.githubusercontent.com/u/6928960?v=3","gravatar_id":"","url":"https://api.github.com/users/shushper","html_url":"https://github.com/shushper","followers_url":"https://api.github.com/users/shushper/followers","following_url":"https://api.github.com/users/shushper/following{/other_user}","gists_url":"https://api.github.com/users/shushper/gists{/gist_id}","starred_url":"https://api.github.com/users/shushper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shushper/subscriptions","organizations_url":"https://api.github.com/users/shushper/orgs","repos_url":"https://api.github.com/users/shushper/repos","events_url":"https://api.github.com/users/shushper/events{/privacy}","received_events_url":"https://api.github.com/users/shushper/received_events","type":"User","site_admin":false},"body":"Вместо этого можно просто писать setTitle() И вообще заголовок activity можно задавать из манифеста.","created_at":"2017-06-29T22:28:34Z","updated_at":"2017-06-29T22:34:43Z","html_url":"https://github.com/Myst3ryX/MoneyTrackerXE/pull/4#discussion_r124927640","pull_request_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/comments/124927640"},"html":{"href":"https://github.com/Myst3ryX/MoneyTrackerXE/pull/4#discussion_r124927640"},"pull_request":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4","id":128039867,"html_url":"https://github.com/Myst3ryX/MoneyTrackerXE/pull/4","diff_url":"https://github.com/Myst3ryX/MoneyTrackerXE/pull/4.diff","patch_url":"https://github.com/Myst3ryX/MoneyTrackerXE/pull/4.patch","issue_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/4","number":4,"state":"open","locked":false,"title":"Logic implemented with Fragments API.","user":{"login":"Myst3ryX","id":29554401,"avatar_url":"https://avatars3.githubusercontent.com/u/29554401?v=3","gravatar_id":"","url":"https://api.github.com/users/Myst3ryX","html_url":"https://github.com/Myst3ryX","followers_url":"https://api.github.com/users/Myst3ryX/followers","following_url":"https://api.github.com/users/Myst3ryX/following{/other_user}","gists_url":"https://api.github.com/users/Myst3ryX/gists{/gist_id}","starred_url":"https://api.github.com/users/Myst3ryX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Myst3ryX/subscriptions","organizations_url":"https://api.github.com/users/Myst3ryX/orgs","repos_url":"https://api.github.com/users/Myst3ryX/repos","events_url":"https://api.github.com/users/Myst3ryX/events{/privacy}","received_events_url":"https://api.github.com/users/Myst3ryX/received_events","type":"User","site_admin":false},"body":"Created TabLayout + ViewPager in MainActivity. Classes created: BalanceFragment.java, ItemsFragment.java and ItemsAdapter.java (from inner-class).","created_at":"2017-06-28T23:15:14Z","updated_at":"2017-06-29T22:34:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8324be532fde34401a844576c1ebe7d917466a8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/4/comments","statuses_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/statuses/ffb649e3e66ae82d2641336b2aa85008e23d7912","head":{"label":"Myst3ryX:add_tablayout_with_fragments","ref":"add_tablayout_with_fragments","sha":"ffb649e3e66ae82d2641336b2aa85008e23d7912","user":{"login":"Myst3ryX","id":29554401,"avatar_url":"https://avatars3.githubusercontent.com/u/29554401?v=3","gravatar_id":"","url":"https://api.github.com/users/Myst3ryX","html_url":"https://github.com/Myst3ryX","followers_url":"https://api.github.com/users/Myst3ryX/followers","following_url":"https://api.github.com/users/Myst3ryX/following{/other_user}","gists_url":"https://api.github.com/users/Myst3ryX/gists{/gist_id}","starred_url":"https://api.github.com/users/Myst3ryX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Myst3ryX/subscriptions","organizations_url":"https://api.github.com/users/Myst3ryX/orgs","repos_url":"https://api.github.com/users/Myst3ryX/repos","events_url":"https://api.github.com/users/Myst3ryX/events{/privacy}","received_events_url":"https://api.github.com/users/Myst3ryX/received_events","type":"User","site_admin":false},"repo":{"id":94946263,"name":"MoneyTrackerXE","full_name":"Myst3ryX/MoneyTrackerXE","owner":{"login":"Myst3ryX","id":29554401,"avatar_url":"https://avatars3.githubusercontent.com/u/29554401?v=3","gravatar_id":"","url":"https://api.github.com/users/Myst3ryX","html_url":"https://github.com/Myst3ryX","followers_url":"https://api.github.com/users/Myst3ryX/followers","following_url":"https://api.github.com/users/Myst3ryX/following{/other_user}","gists_url":"https://api.github.com/users/Myst3ryX/gists{/gist_id}","starred_url":"https://api.github.com/users/Myst3ryX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Myst3ryX/subscriptions","organizations_url":"https://api.github.com/users/Myst3ryX/orgs","repos_url":"https://api.github.com/users/Myst3ryX/repos","events_url":"https://api.github.com/users/Myst3ryX/events{/privacy}","received_events_url":"https://api.github.com/users/Myst3ryX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Myst3ryX/MoneyTrackerXE","description":"MoneyTracker X Edition Application on Android platform","fork":false,"url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE","forks_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/forks","keys_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/teams","hooks_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/hooks","issue_events_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/events{/number}","events_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/events","assignees_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/assignees{/user}","branches_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/branches{/branch}","tags_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/tags","blobs_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/refs{/sha}","trees_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/statuses/{sha}","languages_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/languages","stargazers_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/stargazers","contributors_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/contributors","subscribers_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/subscribers","subscription_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/subscription","commits_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/commits{/sha}","git_commits_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/commits{/sha}","comments_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/comments{/number}","issue_comment_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/comments{/number}","contents_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/contents/{+path}","compare_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/merges","archive_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/downloads","issues_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues{/number}","pulls_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls{/number}","milestones_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/milestones{/number}","notifications_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/labels{/name}","releases_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/releases{/id}","deployments_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/deployments","created_at":"2017-06-21T00:24:32Z","updated_at":"2017-06-21T08:34:20Z","pushed_at":"2017-06-28T23:15:14Z","git_url":"git://github.com/Myst3ryX/MoneyTrackerXE.git","ssh_url":"git@github.com:Myst3ryX/MoneyTrackerXE.git","clone_url":"https://github.com/Myst3ryX/MoneyTrackerXE.git","svn_url":"https://github.com/Myst3ryX/MoneyTrackerXE","homepage":"","size":1587,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Myst3ryX:master","ref":"master","sha":"a07cf84fe7aa270ec10089918274dec2aeb9f9e4","user":{"login":"Myst3ryX","id":29554401,"avatar_url":"https://avatars3.githubusercontent.com/u/29554401?v=3","gravatar_id":"","url":"https://api.github.com/users/Myst3ryX","html_url":"https://github.com/Myst3ryX","followers_url":"https://api.github.com/users/Myst3ryX/followers","following_url":"https://api.github.com/users/Myst3ryX/following{/other_user}","gists_url":"https://api.github.com/users/Myst3ryX/gists{/gist_id}","starred_url":"https://api.github.com/users/Myst3ryX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Myst3ryX/subscriptions","organizations_url":"https://api.github.com/users/Myst3ryX/orgs","repos_url":"https://api.github.com/users/Myst3ryX/repos","events_url":"https://api.github.com/users/Myst3ryX/events{/privacy}","received_events_url":"https://api.github.com/users/Myst3ryX/received_events","type":"User","site_admin":false},"repo":{"id":94946263,"name":"MoneyTrackerXE","full_name":"Myst3ryX/MoneyTrackerXE","owner":{"login":"Myst3ryX","id":29554401,"avatar_url":"https://avatars3.githubusercontent.com/u/29554401?v=3","gravatar_id":"","url":"https://api.github.com/users/Myst3ryX","html_url":"https://github.com/Myst3ryX","followers_url":"https://api.github.com/users/Myst3ryX/followers","following_url":"https://api.github.com/users/Myst3ryX/following{/other_user}","gists_url":"https://api.github.com/users/Myst3ryX/gists{/gist_id}","starred_url":"https://api.github.com/users/Myst3ryX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Myst3ryX/subscriptions","organizations_url":"https://api.github.com/users/Myst3ryX/orgs","repos_url":"https://api.github.com/users/Myst3ryX/repos","events_url":"https://api.github.com/users/Myst3ryX/events{/privacy}","received_events_url":"https://api.github.com/users/Myst3ryX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Myst3ryX/MoneyTrackerXE","description":"MoneyTracker X Edition Application on Android platform","fork":false,"url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE","forks_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/forks","keys_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/teams","hooks_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/hooks","issue_events_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/events{/number}","events_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/events","assignees_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/assignees{/user}","branches_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/branches{/branch}","tags_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/tags","blobs_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/refs{/sha}","trees_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/statuses/{sha}","languages_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/languages","stargazers_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/stargazers","contributors_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/contributors","subscribers_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/subscribers","subscription_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/subscription","commits_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/commits{/sha}","git_commits_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/git/commits{/sha}","comments_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/comments{/number}","issue_comment_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/comments{/number}","contents_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/contents/{+path}","compare_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/merges","archive_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/downloads","issues_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues{/number}","pulls_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls{/number}","milestones_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/milestones{/number}","notifications_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/labels{/name}","releases_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/releases{/id}","deployments_url":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/deployments","created_at":"2017-06-21T00:24:32Z","updated_at":"2017-06-21T08:34:20Z","pushed_at":"2017-06-28T23:15:14Z","git_url":"git://github.com/Myst3ryX/MoneyTrackerXE.git","ssh_url":"git@github.com:Myst3ryX/MoneyTrackerXE.git","clone_url":"https://github.com/Myst3ryX/MoneyTrackerXE.git","svn_url":"https://github.com/Myst3ryX/MoneyTrackerXE","homepage":"","size":1587,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4"},"html":{"href":"https://github.com/Myst3ryX/MoneyTrackerXE/pull/4"},"issue":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/4"},"comments":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Myst3ryX/MoneyTrackerXE/statuses/ffb649e3e66ae82d2641336b2aa85008e23d7912"}}}}
{"actor":{"display_login":"shushper"}}