{"action":"created","issue":{"url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/issues/41","labels_url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/issues/41/comments","events_url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/issues/41/events","html_url":"https://github.com/CMPUT301W15T07/TravelTracker/issues/41","id":57644059,"number":41,"title":"Another style guide question.","user":{"login":"kdbanman","id":1323521,"avatar_url":"https://avatars.githubusercontent.com/u/1323521?v=3","gravatar_id":"","url":"https://api.github.com/users/kdbanman","html_url":"https://github.com/kdbanman","followers_url":"https://api.github.com/users/kdbanman/followers","following_url":"https://api.github.com/users/kdbanman/following{/other_user}","gists_url":"https://api.github.com/users/kdbanman/gists{/gist_id}","starred_url":"https://api.github.com/users/kdbanman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdbanman/subscriptions","organizations_url":"https://api.github.com/users/kdbanman/orgs","repos_url":"https://api.github.com/users/kdbanman/repos","events_url":"https://api.github.com/users/kdbanman/events{/privacy}","received_events_url":"https://api.github.com/users/kdbanman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/labels/wiki","name":"wiki","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-13T19:40:58Z","updated_at":"2015-02-13T19:47:22Z","closed_at":null,"body":"View IDs in our layout xml files are a point of concern for me.  Every ID for every view in every layout file gets slammed into the global `R.id` namespace.  For this reason, I think we need to manually namespace our view IDs.\r\n\r\nFor example, take the claim info activity, where we're looking at an individual claim in detail.  There are a two files:\r\n\r\n- ClaimInfoActivity.java\r\n- ClaimInfoLayout.xml\r\n\r\nPrefixing each component's ID in the layout with `ClaimInfo` is what I did for assignment 1.  Rather than a `TextView` called `UserName`, I would give it the ID `ClaimInfoUserName`.  This prevented view ID collisions and made autocomplete on `R.id.*` actually useful.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/issues/comments/74314814","html_url":"https://github.com/CMPUT301W15T07/TravelTracker/issues/41#issuecomment-74314814","issue_url":"https://api.github.com/repos/CMPUT301W15T07/TravelTracker/issues/41","id":74314814,"user":{"login":"kuzi117","id":676209,"avatar_url":"https://avatars.githubusercontent.com/u/676209?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzi117","html_url":"https://github.com/kuzi117","followers_url":"https://api.github.com/users/kuzi117/followers","following_url":"https://api.github.com/users/kuzi117/following{/other_user}","gists_url":"https://api.github.com/users/kuzi117/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzi117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzi117/subscriptions","organizations_url":"https://api.github.com/users/kuzi117/orgs","repos_url":"https://api.github.com/users/kuzi117/repos","events_url":"https://api.github.com/users/kuzi117/events{/privacy}","received_events_url":"https://api.github.com/users/kuzi117/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T19:47:22Z","updated_at":"2015-02-13T19:47:22Z","body":"I never considered it before but I like it."}}