{"action":"published","release":{"url":"https://api.github.com/repos/kiritdevda/CriminalIntent/releases/3825732","assets_url":"https://api.github.com/repos/kiritdevda/CriminalIntent/releases/3825732/assets","upload_url":"https://uploads.github.com/repos/kiritdevda/CriminalIntent/releases/3825732/assets{?name,label}","html_url":"https://github.com/kiritdevda/CriminalIntent/releases/tag/1.0.01","id":3825732,"tag_name":"1.0.01","target_commitish":"master","name":"Fragment basics","draft":false,"author":{"login":"kiritdevda","id":20741263,"avatar_url":"https://avatars.githubusercontent.com/u/20741263?v=3","gravatar_id":"","url":"https://api.github.com/users/kiritdevda","html_url":"https://github.com/kiritdevda","followers_url":"https://api.github.com/users/kiritdevda/followers","following_url":"https://api.github.com/users/kiritdevda/following{/other_user}","gists_url":"https://api.github.com/users/kiritdevda/gists{/gist_id}","starred_url":"https://api.github.com/users/kiritdevda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiritdevda/subscriptions","organizations_url":"https://api.github.com/users/kiritdevda/orgs","repos_url":"https://api.github.com/users/kiritdevda/repos","events_url":"https://api.github.com/users/kiritdevda/events{/privacy}","received_events_url":"https://api.github.com/users/kiritdevda/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2016-08-05T20:37:02Z","published_at":"2016-08-05T20:42:55Z","assets":[],"tarball_url":"https://api.github.com/repos/kiritdevda/CriminalIntent/tarball/1.0.01","zipball_url":"https://api.github.com/repos/kiritdevda/CriminalIntent/zipball/1.0.01","body":"This build conatins basics of Fragments with associated code\r\n\r\n    BigNerdRanch Guide to Android Development : Chapter 7 ( 160 - 179 ) - UI Fragments & Fragment Manager\r\n\r\n    1. what are fragments\r\n    2. why do we use fragment\r\n    3. how to use them(from Activity or from layout)\r\n\r\n    1. What are fragments\r\n    fragments can be considered self-contained view which can be attached to a view-group of an layout\r\n    Insimpler trems fragments are re-usable UI component it can be used accross different layout spanning various actvities\r\n    it makes UI quite modular\r\n\r\n    2.why do we use fragments\r\n    Since they are re-usable piece of UI , they can be bumped up in any layout and has it's own lifecycle\r\n    since they are sub-class of Activity class life-cycle of Activity class will affect life-cycle of Fragment\r\n    Since they are container's within a Activity they are part governed by Activity but within fragments they are\r\n    governed by FragmentManager which identifity a fragment based on the container id(i.e View id where they are attached\r\n    and not by the fragment id which makes sense as the exsistence of fragment is completely relied to container to which\r\n    they are attached) FragmentManager can be considered a LowerHouse and Activity Manager as UpperHouse to manage the Android\r\n    ecosystem governance !!! metaphor ahhh\r\n\r\n    3.How to use Fragment\r\n    Fragments can be used by FragmentActivity by initialising a FragmentManager\r\n    FragmentManager fm = getSupportFragmentManager(); //Old API compaitible method you can use getFragmentManager() if bc no required\r\n\r\n    A FragmentManager is responsible to manage the lifecycle of Fragment hence\r\n    we need to ask FragmentManager to initiate fragment lifecycle by calling follwoing method\r\n\r\n    fragment = new CrimeFragment();\r\n    fm.beginTransaction().add(R.id.fragmentContainer,fragment).commit();"}}
{"actor":{"display_login":"kiritdevda"}}